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)

        return np.array(scores)

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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: mariogeiger/se3cnn
Commit Name: 06777db554db441e1ec2aa2fb8c5d40565a1ba0f
Time: 2019-07-07
Author: geiger.mario@gmail.com
File Name: se3cnn/point_kernel.py
Class Name: SE3PointKernel
Method Name: __init__


Project Name: dit/dit
Commit Name: d738388c3ac14684d384b05d7e03417a0edffdd1
Time: 2016-05-11
Author: ryangregoryjames@gmail.com
File Name: dit/multivariate/dilworth.py
Class Name:
Method Name: dilworth