b70e10b94af7c7e4c4ed88e6516134580c389a34,libact/query_strategies/variance_reduction.py,VarianceReduction,make_query,#VarianceReduction#Any#Any#Any#,82

Before Change


        clf = copy.copy(self.model)
        clf.train(Dataset(Xlabeled, y))

        errors = Parallel(n_jobs=n_jobs)(delayed(self.E)(Xlabeled, y, x, clf,
            label_count) for x in X_pool)

        return unlabeled_entry_ids[errors.index(min(errors))]

After Change


        //errors = []
        //for x in X_pool:
        //    errors.append(self.E((Xlabeled, y, x, clf, label_count)))
        errors = p.map(self.E, [(Xlabeled, y, x, clf, label_count) for x in\
            X_pool])
        //print(errors)
        end = time.time()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ntucllab/libact
Commit Name: b70e10b94af7c7e4c4ed88e6516134580c389a34
Time: 2015-03-19
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/variance_reduction.py
Class Name: VarianceReduction
Method Name: make_query


Project Name: nilearn/nilearn
Commit Name: 3daedc17ddab948752f3d6b90e56b177ea77ec42
Time: 2014-02-26
Author: virgile.fritsch@gmail.com
File Name: nilearn/mass_univariate/permuted_least_squares.py
Class Name:
Method Name: permuted_ols


Project Name: D2KLab/entity2rec
Commit Name: 6254b5540c4e114439b9930fe41c20542155ecc9
Time: 2017-12-13
Author: enricopalumbo0@gmail.com
File Name: entity2rec/entity2rec.py
Class Name: Entity2Rec
Method Name: _compute_features