Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37e2ffd

Browse files
authored
DOC Ensure plot_det_curve passes numpydoc validation (#24334)
1 parent bc40e30 commit 37e2ffd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

sklearn/metrics/_plot/det_curve.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,18 +370,18 @@ def plot_det_curve(
370370
):
371371
"""Plot detection error tradeoff (DET) curve.
372372
373-
Extra keyword arguments will be passed to matplotlib's `plot`.
374-
375-
Read more in the :ref:`User Guide <visualizations>`.
376-
377-
.. versionadded:: 0.24
378-
379373
.. deprecated:: 1.0
380374
`plot_det_curve` is deprecated in 1.0 and will be removed in
381375
1.2. Use one of the following class methods:
382376
:func:`~sklearn.metrics.DetCurveDisplay.from_predictions` or
383377
:func:`~sklearn.metrics.DetCurveDisplay.from_estimator`.
384378
379+
Extra keyword arguments will be passed to matplotlib's `plot`.
380+
381+
Read more in the :ref:`User Guide <visualizations>`.
382+
383+
.. versionadded:: 0.24
384+
385385
Parameters
386386
----------
387387
estimator : estimator instance

sklearn/tests/test_docstrings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"sklearn.decomposition._dict_learning.dict_learning",
1616
"sklearn.externals._packaging.version.parse",
1717
"sklearn.inspection._plot.partial_dependence.plot_partial_dependence",
18+
# sklearn.deprecation._update_doc is updating the doc against the numpydoc.
19+
# This will be fixed with issue: #24328
1820
"sklearn.metrics._plot.det_curve.plot_det_curve",
1921
"sklearn.metrics._plot.precision_recall_curve.plot_precision_recall_curve",
2022
"sklearn.metrics._ranking.dcg_score",

0 commit comments

Comments
 (0)