b0228f7a692d904aee1690e2be06d5ef63a17997,skater/tests/test_partial_dependence.py,TestPartialDependence,test_partial_dependence_multiclass,#TestPartialDependence#,131
Before Change
clf = GradientBoostingClassifier(n_estimators=10, random_state=1)
clf.fit(iris.data, iris.target)
classifier_predict_fn = InMemoryModel(clf.predict_proba, examples=iris.data)
interpreter = Interpretation()
interpreter.load_data(iris.data, iris.feature_names)
pdp_df = interpreter.partial_dependence.partial_dependence([iris.feature_names[0]], classifier_predict_fn,
grid_resolution=25, sample=True)
expected_feature_name = PartialDependence.feature_column_name_formatter("sepal length (cm)")
After Change
clf = GradientBoostingClassifier(n_estimators=10, random_state=1)
clf.fit(iris.data, iris.target)
classifier_predict_fn = InMemoryModel(clf.predict_proba, examples=iris.data)
interpreter = Interpretation(training_data=iris.data, feature_names=iris.feature_names)
pdp_df = interpreter.partial_dependence.partial_dependence([iris.feature_names[0]], classifier_predict_fn,
grid_resolution=25, sample=True)
expected_feature_name = PartialDependence.feature_column_name_formatter("sepal length (cm)")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: datascienceinc/Skater
Commit Name: b0228f7a692d904aee1690e2be06d5ef63a17997
Time: 2017-10-09
Author: aikramer2@gmail.com
File Name: skater/tests/test_partial_dependence.py
Class Name: TestPartialDependence
Method Name: test_partial_dependence_multiclass
Project Name: datascienceinc/Skater
Commit Name: b0228f7a692d904aee1690e2be06d5ef63a17997
Time: 2017-10-09
Author: aikramer2@gmail.com
File Name: skater/tests/test_partial_dependence.py
Class Name: TestPartialDependence
Method Name: test_partial_dependence_binary_classification
Project Name: datascienceinc/Skater
Commit Name: b0228f7a692d904aee1690e2be06d5ef63a17997
Time: 2017-10-09
Author: aikramer2@gmail.com
File Name: skater/tests/test_partial_dependence.py
Class Name: TestPartialDependence
Method Name: setUp
Project Name: datascienceinc/Skater
Commit Name: b0228f7a692d904aee1690e2be06d5ef63a17997
Time: 2017-10-09
Author: aikramer2@gmail.com
File Name: skater/tests/test_feature_importance.py
Class Name: TestFeatureImportance
Method Name: setUp