0bab786d05391d24fd101f3aed71e6f4b3f14b55,lynxes/core/global_interpretation/feature_importance.py,FeatureImportance,feature_importance,#FeatureImportance#Any#Any#,25

Before Change



            // evaluated entropy of scaled changes.
            changes_in_predictions = new_predictions - original_predictions
            importance = np.mean(np.std(changes_in_predictions, axis=0))
            importances[feature_id] = importance

            // reset copy
            copy_of_data_set[feature_id] = self.data_set[feature_id]

After Change


                                         "Please submit an issue here:"
                                         "https://github.com/datascienceinc/model-interpretation/issues"))

        importances = divide_zerosafe(importances, (np.ones(importances.shape[0]) * importances.sum()))
        return importances


    def plot_feature_importance(self, predict_fn, filter_classes=None, ax=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: datascienceinc/Skater
Commit Name: 0bab786d05391d24fd101f3aed71e6f4b3f14b55
Time: 2017-05-08
Author: aikramer2@gmail.com
File Name: lynxes/core/global_interpretation/feature_importance.py
Class Name: FeatureImportance
Method Name: feature_importance


Project Name: senarvi/theanolm
Commit Name: f34ead40a44be5242a64bf81fced57e3f81180fd
Time: 2015-11-23
Author: seppo.git@marjaniemi.com
File Name: theanolm/optimizers/basicoptimizer.py
Class Name: BasicOptimizer
Method Name: __init__


Project Name: sassoftware/python-dlpy
Commit Name: d04b0d52e8789d32d71c099e904a0617756884ac
Time: 2019-09-17
Author: Xiangqian.Hu@SAS.COM
File Name: dlpy/metrics.py
Class Name:
Method Name: accuracy_score


Project Name: bashtage/linearmodels
Commit Name: aae5f35d7b2e167a2d3c0af0f44542448c36557d
Time: 2017-04-04
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: PanelOLS
Method Name: _slow_path


Project Name: AIRLab-POLIMI/mushroom
Commit Name: b98d2eb19fbb21c89bf8d6a7f609ac9aa9b81f5e
Time: 2019-07-10
Author: carlo.deramo@gmail.com
File Name: mushroom/approximators/parametric/pytorch_network.py
Class Name: PyTorchApproximator
Method Name: _fit_batch


Project Name: WheatonCS/Lexos
Commit Name: 50b0c10ca037425b4b33ae214391d50cc96ffd72
Time: 2017-07-24
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: CorpusInformation
Method Name: __init__