DOC Fix deprecation warning in plot_roc_crossval
@@ -32,7 +32,6 @@ different the splits generated by K-fold cross-validation are from one another.
print(__doc__)
import numpy as np
-from scipy import interp
import matplotlib.pyplot as plt
from sklearn import svm, datasets
@@ -72,7 +71,7 @@ for i, (train, test) in enumerate(cv.split(X, y)):
viz = plot_roc_curve(classifier, X[test], y[test],
name='ROC fold {}'.format(i),
alpha=0.3, lw=1, ax=ax)
- interp_tpr = interp(mean_fpr, viz.fpr, viz.tpr)
+ interp_tpr = np.interp(mean_fpr, viz.fpr, viz.tpr)
interp_tpr[0] = 0.0
tprs.append(interp_tpr)
aucs.append(viz.roc_auc)
