Skip to content

Commit

Permalink
DOC Clarify what can be passed to the plotting utilities (scikit-lear…
Browse files Browse the repository at this point in the history
  • Loading branch information
justmarkham committed Apr 10, 2020
1 parent f31e25b commit 0a93fc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sklearn/metrics/_plot/confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def plot_confusion_matrix(estimator, X, y_true, labels=None,
Parameters
----------
estimator : estimator instance
Trained classifier.
Fitted classifier or a fitted :class:`~sklearn.pipeline.Pipeline`
in which the last estimator is a classifier.
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Input values.
Expand Down
3 changes: 2 additions & 1 deletion sklearn/metrics/_plot/precision_recall_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def plot_precision_recall_curve(estimator, X, y,
Parameters
----------
estimator : estimator instance
Trained classifier.
Fitted classifier or a fitted :class:`~sklearn.pipeline.Pipeline`
in which the last estimator is a classifier.
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Input values.
Expand Down
3 changes: 2 additions & 1 deletion sklearn/metrics/_plot/roc_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def plot_roc_curve(estimator, X, y, sample_weight=None,
Parameters
----------
estimator : estimator instance
Trained classifier.
Fitted classifier or a fitted :class:`~sklearn.pipeline.Pipeline`
in which the last estimator is a classifier.
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Input values.
Expand Down

0 comments on commit 0a93fc9

Please sign in to comment.