3b7a3e628b0dea98f0dcaad6d91b22c7c137d04d,bambi/models.py,Model,add,#Model#Any#Any#Any#Any#Any#Any#Any#,266

Before Change



                    // identify and flag intercept and cell-means terms (i.e.,
                    // full-rank dummy codes), which receive special priors
                    constant = np.atleast_2d(pred_df.T).T.sum(1).var() == 0

                    for col, ind in pred_df.design_info.column_name_indexes.items():
                        lev_data = grpr_df.multiply(pred_df.iloc[:, ind],
                                                    axis=0)

After Change


                        else:
                            cat = False

                        pred_data = pred_data[:, None]  // Must be 2D later
                        term = RandomTerm(self, label, lev_data, pred_data,
                                          grpr_df.values, categorical=cat)
                        self.terms[label] = term
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: bambinos/bambi
Commit Name: 3b7a3e628b0dea98f0dcaad6d91b22c7c137d04d
Time: 2017-03-24
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: Model
Method Name: add


Project Name: theislab/scanpy
Commit Name: d1d70f4790700927e289a3702b17fbde8f1b8631
Time: 2020-04-14
Author: atarashansky@gmail.com
File Name: scanpy/preprocessing/_simple.py
Class Name:
Method Name: pca


Project Name: bulik/ldsc
Commit Name: 9a3a775a0139ad31a7fd313d46f09461100ce1d6
Time: 2015-04-18
Author: bbuliksullivan@gmail.com
File Name: ldscore/sumstats.py
Class Name:
Method Name: _check_variance


Project Name: scikit-image/scikit-image
Commit Name: 799a21efa211907c19d3afdd611ac7d70774f462
Time: 2016-09-06
Author: gregory.lee@cchmc.org
File Name: skimage/restoration/_denoise.py
Class Name:
Method Name: _wavelet_threshold