5bb62768d064583aef9efaf5b0838878e11f71e3,bambi/models.py,RandomTerm,_setup,#RandomTerm#,260

Before Change


            self.prior = deepcopy(default_priors["random"])

            // Rescale prior sd--need to implement better heuristic
            mean_range = self.data.mean(0).max() - self.data.mean(0).min()
            scl = max(mean_range, 1)
            self.prior["sigma"]["args"]["beta"] *= (scl * 2 * self.model.y.data.std())

After Change



            // nested terms are in dicts, so put non-nested terms in dummy dict
            max_range = 0.
            if not isinstance(data, dict):
                data = {"dummy": data}
            for level in data.values():
                lev_range = level.mean(0).max() - level.mean(0).min()
                if lev_range > max_range:
                    max_range = lev_range
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: bambinos/bambi
Commit Name: 5bb62768d064583aef9efaf5b0838878e11f71e3
Time: 2016-08-14
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: RandomTerm
Method Name: _setup


Project Name: scikit-optimize/scikit-optimize
Commit Name: a225606e6bb4d402b6000e90b91e7acd8e068f88
Time: 2018-05-29
Author: stefano.cereda@moviri.com
File Name: skopt/plots.py
Class Name:
Method Name: plot_regret


Project Name: tensorflow/magenta
Commit Name: 422678c8bf45574bb7c8a87ba434c455f9f7b877
Time: 2018-07-26
Author: iansimon@users.noreply.github.com
File Name: magenta/music/chord_inference.py
Class Name:
Method Name: sequence_note_pitch_vectors