d430e92f1bc58b28567439a1028bc1697e7a7869,benchmarks/benchmarks/stats.py,ContinuousFitAnalyticalMLEOverride,setup,#ContinuousFitAnalyticalMLEOverride#Any#Any#Any#Any#Any#Any#,203

Before Change



    def setup(self, dist_name, loc_fixed, scale_fixed, shape1_fixed,
              shape2_fixed, shape3_fixed):
        self.distn = self.distributions[dist_name]["self"]

        self.fixed = {}
        self.dict = self.distributions[dist_name]
        self.shapes = self.dict.get("fixed_shapes", {})

After Change


        self.fixed = {key: value for i, (key, value)
                      in enumerate(zip(self.fnames, param_value))
                      if relevant_parameters[i]}
        self.data = self.distn.rvs(*param_value, size=10000)

    def time_fit(self, dist_name, loc_fixed, scale_fixed, shape1_fixed,
                 shape2_fixed, shape3_fixed):
        self.distn.fit(self.data, **self.fixed)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: scipy/scipy
Commit Name: d430e92f1bc58b28567439a1028bc1697e7a7869
Time: 2020-08-04
Author: 44255917+swallan@users.noreply.github.com
File Name: benchmarks/benchmarks/stats.py
Class Name: ContinuousFitAnalyticalMLEOverride
Method Name: setup


Project Name: scikit-optimize/scikit-optimize
Commit Name: 0a60b2d2807cf370e984b0bd9f7c4d0edabe4267
Time: 2016-06-14
Author: g.louppe@gmail.com
File Name: skopt/gbrt_opt.py
Class Name:
Method Name: gbrt_minimize


Project Name: scikit-optimize/scikit-optimize
Commit Name: ff79459931a63a463bbf6defada31d4638918575
Time: 2017-08-04
Author: betatim@gmail.com
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: tell