Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/b/o/borg-2012.4.01/src/python/borg/experiments/simulate_runs.py   borg(Download)
                estimator = borg.models.MulDirMatMixEstimator(**model_kwargs)
            elif self.subname.endswith("-log"):
                estimator = borg.models.DiscreteLogNormalMatMixEstimator(**model_kwargs)
            else:
                raise ValueError("unrecognized portfolio subname: {0}".format(self.subname))
 
            train_data = train_data.only_nontrivial(train_data.common_budget / bins) # XXX ?
            model = estimator(train_data, bins, full_data)

src/b/o/borg-HEAD/borg/experiments/simulate_runs.py   borg(Download)
                estimator = borg.models.MulDirMatMixEstimator(**model_kwargs)
            elif self.subname.endswith("-log"):
                estimator = borg.models.DiscreteLogNormalMatMixEstimator(**model_kwargs)
            else:
                raise ValueError("unrecognized portfolio subname: {0}".format(self.subname))
 
            train_data = train_data.only_nontrivial(train_data.common_budget / bins) # XXX ?
            model = estimator(train_data, bins, full_data)