ece383696800b9b34854df27a65a3d1d74669952,skrebate/iterrelief.py,IterRelief,fit,#IterRelief#Any#Any#,69
Before Change
feature_weights = core_fit.feature_importances_
mx = max(feature_weights)
mn = min(feature_weights)
rg = mx - mn
weight_history.append(feature_weights)
feature_weights = [(x - mn)/(rg) for x in feature_weights]
distance_weights += feature_weights
After Change
//normalize and update scores
//negative numbers -> 0, positive numbers become normalized so maximum is 1.
for i in range(0, len(feature_weights)):
if feature_weights[i] <= 0:
feature_weights[i] = 0
else:
feature_weights[i] = feature_weights[i] / mx
distance_weights += feature_weights
iteration += 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
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: kevinzakka/recurrent-visual-attention
Commit Name: 520e8fb57b890a7249334d9e90c9ad209d0b849f
Time: 2018-02-10
Author: kevinarmandzakka@gmail.com
File Name: modules.py
Class Name: retina
Method Name: foveate
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