ece383696800b9b34854df27a65a3d1d74669952,skrebate/iterrelief.py,IterRelief,fit,#IterRelief#,69

Before Change


        // Determine total number of features
        total_num_features = X.shape[1]

        print("num featuers")
        print(total_num_features)
        // Initialize weights
        distance_weights = np.ones(total_num_features)

After Change


            core_fit = core.fit(self.X_mat, self._y, distance_weights, self.weight_flag)

            //reset distance_weights so that only previous run affects next one
            distance_weights = np.ones(total_num_features)

            // When all weights become 0, break
            if all(w == 0 for w in core_fit.feature_importances_):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: EpistasisLab/scikit-rebate
Commit Name: ece383696800b9b34854df27a65a3d1d74669952
Time: 2020-05-28
Author: alexmxu@alexs-mbp-3.attlocal.net
File Name: skrebate/iterrelief.py
Class Name: IterRelief
Method Name: fit


Project Name: EpistasisLab/scikit-rebate
Commit Name: 163eb7df13667e21b0e02a2706e18d1f53eee610
Time: 2020-01-29
Author: alexmxu99@gmail.com
File Name: skrebate/iterrelief.py
Class Name: IterRelief
Method Name: fit


Project Name: deeppomf/DeepCreamPy
Commit Name: 08d8e8cfc963c6f345556e84b485a9870b503b2d
Time: 2018-10-20
Author: deeppomf@gmail.com
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_image