Skip to content

Commit

Permalink
docs: Mark CrossValidationReporter as deprecated (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
auguste-probabl authored Jan 21, 2025
1 parent 434340e commit 84f54e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions examples/model_evaluation/plot_cross_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
This example illustrates the motivation and the use of skore's
:class:`skore.CrossValidationReporter` to get assistance when developing ML/DS projects.
.. warning ::
**Deprecation Notice**:
:class:`skore.CrossValidationReporter` is deprecated in favor of :class:`skore.CrossValidationReport`.
"""

# %%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
This class implements a wrapper over scikit-learn's
`cross_validate <https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_validate.html#sklearn.model_selection.cross_validate>`_
function in order to enrich it with more information and enable more analysis.
.. warning ::
**Deprecation Notice**:
This class is deprecated in favor of :class:`skore.CrossValidationReport`.
"""

from dataclasses import dataclass
Expand Down Expand Up @@ -30,6 +35,11 @@ class CrossValidationPlots:
class CrossValidationReporter:
"""Evaluate estimator by cross-validation and output UI-friendly object.
.. warning ::
**Deprecation Notice**:
This class is deprecated in favor of :class:`skore.CrossValidationReport`.
This class wraps scikit-learn's :func:`sklearn.model_selection.cross_validate`
function, to provide more context and facilitate the analysis.
As such, the arguments are the same as the
Expand Down
13 changes: 12 additions & 1 deletion sphinx/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ These functions and classes enhance scikit-learn's ones.
:caption: ML Assistance

train_test_split
CrossValidationReporter

Report for a single estimator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -146,3 +145,15 @@ get the common performance metric representations.
CrossValidationReport.metrics.plot.precision_recall
CrossValidationReport.metrics.plot.prediction_error
CrossValidationReport.metrics.plot.roc

Deprecated
----------

These functions and classes are deprecated.

.. autosummary::
:toctree: generated/
:template: base.rst
:caption: Deprecated

CrossValidationReporter

0 comments on commit 84f54e3

Please sign in to comment.