0cdb66b87cd159c176833dea3db40c76d3bdd0f4,pyinterpret/tests/test_lime.py,TestLime,test_classifier_with_proba_without_feature_names,#TestLime#,72
Before Change
and feature names are NOT passed
:return:
classifier = GradientBoostingClassifier()
classifier.fit(self.X, self.y_for_classifier)
interpretor = LimeTabularExplainer(self.X)
interpretor.explain_instance(self.example, classifier.predict_proba)
def test_classifier_no_proba_with_feature_names(self):
Ensure lime.lime_tabular works when predict_fn = classifier.predict
After Change
interpretor = LimeTabularExplainer(self.X)
assert interpretor.explain_instance(self.example, self.classifier.predict_proba)
def test_classifier_no_proba_with_feature_names(self):
Ensure lime.lime_tabular works when predict_fn = classifier.predict
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: datascienceinc/Skater
Commit Name: 0cdb66b87cd159c176833dea3db40c76d3bdd0f4
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_lime.py
Class Name: TestLime
Method Name: test_classifier_with_proba_without_feature_names
Project Name: datascienceinc/Skater
Commit Name: 0cdb66b87cd159c176833dea3db40c76d3bdd0f4
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_lime.py
Class Name: TestLime
Method Name: test_classifier_with_proba_without_feature_names
Project Name: datascienceinc/Skater
Commit Name: 0cdb66b87cd159c176833dea3db40c76d3bdd0f4
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_lime.py
Class Name: TestLime
Method Name: test_classifier_no_proba_without_feature_names
Project Name: datascienceinc/Skater
Commit Name: 0cdb66b87cd159c176833dea3db40c76d3bdd0f4
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_lime.py
Class Name: TestLime
Method Name: test_classifier_with_proba_with_feature_names
Project Name: datascienceinc/Skater
Commit Name: 0cdb66b87cd159c176833dea3db40c76d3bdd0f4
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_lime.py
Class Name: TestLime
Method Name: test_classifier_no_proba_with_feature_names