6de1264d69937280cc7cb2016100a66a6086e297,bambi/models.py,Model,add_term,#Model#Any#Any#Any#Any#Any#Any#Any#Any#,435

Before Change


            // For categorical effects, one variance term per predictor level
            if categorical:
                split_data = {}
                groups = list(set([re.sub(r"^.*?\:", "", c) for c in cols]))
                for g in groups:
                    patt = re.escape(r":%s" % g) + "$"
                    level_data = data.filter(regex=patt)

After Change


                    split_data[g] = level_data//.values
                data = split_data
            else:
                data.columns = [c.split(":")[0] for c in cols]
        else:
            data = X
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bambinos/bambi
Commit Name: 6de1264d69937280cc7cb2016100a66a6086e297
Time: 2017-02-26
Author: jake.a.westfall@gmail.com
File Name: bambi/models.py
Class Name: Model
Method Name: add_term


Project Name: studioml/studio
Commit Name: 514e97adf46aa0cad330d44ae820a793c6a1e308
Time: 2017-06-06
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name:
Method Name: _remove_backspaces


Project Name: japerk/nltk-trainer
Commit Name: 7f89189a0fbdeaa9b70ec6961672333448beae1c
Time: 2014-07-13
Author: lababidi@gmail.com
File Name: train_classifier.py
Class Name:
Method Name: