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

Before Change


        self.distn = self.distributions[dist_name]["self"]

        self.fixed = {}
        self.dict = self.distributions[dist_name]
        self.shapes = self.dict.get("fixed_shapes", {})
        // add fixed `loc` and `scale`
        all_parameters = [loc_fixed, scale_fixed, shape1_fixed, shape2_fixed,
                          shape3_fixed]
        nparam = (len(self.distn.shapes.replace(",", " ").split())

After Change



        // use custom input or default loc, scale, and shape.
        // default shapes are from `_distr_params.py`
        default_shapes = [i for i in distcont if i[0] == dist_name][0][1]
        param_value = self.custom_input.get(dist_name, [.834, 4.342,
                                                        *default_shapes])

        // add fixed values if fixed in relevant_parameters to self.fixed
        // with keys from self.fnames and values from parameter_values
        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: geekcomputers/Python
Commit Name: c90c7f8e22c710729193604b55b144e2c04025c5
Time: 2017-01-18
Author: Pren0724@stthomas.edu
File Name: CountMillionCharacter.py
Class Name:
Method Name:


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model