Skip to content

Commit e0fd236

Browse files
authored
DOC Don't use deprecated RocCurveDisplay kwargs (scikit-learn#31482)
1 parent 90209c8 commit e0fd236

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/visualizations.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ again by using the `plot` method of the `Display` object.
100100
rfc.fit(X_train, y_train)
101101

102102
ax = plt.gca()
103-
rfc_disp = RocCurveDisplay.from_estimator(rfc, X_test, y_test, ax=ax, alpha=0.8)
104-
clf_disp.plot(ax=ax, alpha=0.8)
103+
rfc_disp = RocCurveDisplay.from_estimator(
104+
rfc, X_test, y_test, ax=ax, curve_kwargs={"alpha": 0.8}
105+
)
106+
clf_disp.plot(ax=ax, curve_kwargs={"alpha": 0.8})
105107

106108
Notice that we pass `alpha=0.8` to the plot functions to adjust the alpha
107109
values of the curves.

0 commit comments

Comments
 (0)