971719830d589eba66434ddabfc62c1a689be677,skrebate/relieff.py,ReliefF,_run_algorithm,#ReliefF#,420
Before Change
nan_entries = np.isnan(self._X)
if self.n_jobs != 1:
scores = np.sum(Parallel(n_jobs=self.n_jobs)(delayed(
self._compute_scores)(instance_num, attr, nan_entries) for instance_num in range(self._datalen)), axis=0)
else:
scores = np.sum([self._compute_scores(instance_num, attr, nan_entries) for instance_num in range(self._datalen)], axis=0)
After Change
scores = np.sum([self._compute_scores(instance_num, attr, nan_entries) for instance_num in range(self._datalen)], axis=0)
NNlist = map(self._find_neighbors, range(self._datalen))
scores = np.sum(Parallel(n_jobs=self.n_jobs)(delayed(
compute_scores)(instance_num, attr, nan_entries, self._num_attributes,
NN, self._headers, self._class_type, self._X, self._y, self._labels_std)
for instance_num, NN in zip(range(self._datalen), NNlist)), axis=0)
return np.array(scores)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
Project Name: D2KLab/entity2rec
Commit Name: 1783757d1d5f62d2398d1f8df2cd71b4c3113b6f
Time: 2018-01-22
Author: enricopalumbo0@gmail.com
File Name: entity2rec/evaluator.py
Class Name: Evaluator
Method Name: features
Project Name: dask/dask-image
Commit Name: b4ae3a5a56f63b1ed65370d2bb074503026cc1c4
Time: 2018-09-17
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: label