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


            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
            scl = max(max_range, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: reinforceio/tensorforce
Commit Name: cf6d258c003a5a5b5073830e73e4580aeaf71d45
Time: 2017-06-24
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/preprocessing/normalize.py
Class Name: Normalize
Method Name: process


Project Name: analysiscenter/batchflow
Commit Name: fa0c013fc201cebf5c9aceb0098cf7cc9094a34f
Time: 2020-04-02
Author: dimonovez@gmail.com
File Name: batchflow/utils.py
Class Name:
Method Name: print_results


Project Name: glm-tools/pyglmnet
Commit Name: 3e7bf0e82cb729f3e5d342abc4d9e9b843390298
Time: 2016-10-15
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name: GLM
Method Name: fit