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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: pymc-devs/pymc3
Commit Name: 72e4750366e3cfb1ebd9f18d4d54ad1f49380928
Time: 2017-10-17
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/sampling.py
Class Name:
Method Name: _mp_sample
Project Name: EpistasisLab/scikit-rebate
Commit Name: 971719830d589eba66434ddabfc62c1a689be677
Time: 2017-04-07
Author: weixuanf@upenn.edu
File Name: skrebate/relieff.py
Class Name: ReliefF
Method Name: _run_algorithm