Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Document the different displays as part of public API #1330

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions skore/src/skore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from skore.sklearn import (
CrossValidationReport,
EstimatorReport,
PrecisionRecallCurveDisplay,
PredictionErrorDisplay,
RocCurveDisplay,
train_test_split,
)
from skore.utils._patch import setup_jupyter_display
Expand All @@ -18,7 +21,10 @@
__all__ = [
"CrossValidationReport",
"EstimatorReport",
"PrecisionRecallCurveDisplay",
"PredictionErrorDisplay",
"Project",
"RocCurveDisplay",
"open",
"show_versions",
"train_test_split",
Expand Down
8 changes: 8 additions & 0 deletions skore/src/skore/sklearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

from skore.sklearn._cross_validation import CrossValidationReport
from skore.sklearn._estimator import EstimatorReport
from skore.sklearn._plot import (
PrecisionRecallCurveDisplay,
PredictionErrorDisplay,
RocCurveDisplay,
)
from skore.sklearn.train_test_split.train_test_split import train_test_split

__all__ = [
"train_test_split",
"CrossValidationReport",
"EstimatorReport",
"RocCurveDisplay",
"PrecisionRecallCurveDisplay",
"PredictionErrorDisplay",
]
4 changes: 3 additions & 1 deletion sphinx/reference/report/cross_validation_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Report for a cross-validation of an estimator

.. currentmodule:: skore

The class :class:`CrossValidationReport` performs cross-validation and provides a report to inspect and evaluate a scikit-learn estimator in an interactive way. The functionalities of the report are exposed through accessors.
The class :class:`CrossValidationReport` performs cross-validation and provides a report
to inspect and evaluate a scikit-learn estimator in an interactive way. The
functionalities of the report are exposed through accessors.

.. autosummary::
:toctree: ../api/
Expand Down
15 changes: 15 additions & 0 deletions sphinx/reference/report/displays.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Visualization Displays
======================

.. currentmodule:: skore

A set of displays are available through the different reports. Find in this section
the API of each display.

.. autosummary::
:toctree: ../api/
:template: base.rst

RocCurveDisplay
PrecisionRecallCurveDisplay
PredictionErrorDisplay
23 changes: 19 additions & 4 deletions sphinx/reference/report/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ ML Assistance

.. currentmodule:: skore

This section contains documentation for skore features that enhance the ML development process.
This section contains documentation for skore features that enhance the ML development
process.

Get assistance when developing ML/DS projects
---------------------------------------------
Expand All @@ -19,8 +20,9 @@ These functions and classes build upon scikit-learn's functionality.
Single Estimator Report
-----------------------

:class:`skore.EstimatorReport` provides comprehensive reporting capabilities for individual
scikit-learn estimators, including metrics, visualizations, and evaluation tools.
:class:`skore.EstimatorReport` provides comprehensive reporting capabilities for
individual scikit-learn estimators, including metrics, visualizations, and evaluation
tools.

.. toctree::
:maxdepth: 2
Expand All @@ -31,10 +33,23 @@ scikit-learn estimators, including metrics, visualizations, and evaluation tools
Cross-validation Report
-----------------------

:class:`skore.CrossValidationReport` provides comprehensive capabilities for evaluating scikit-learn estimators by cross-validation, and reporting the results.
:class:`skore.CrossValidationReport` provides comprehensive capabilities for evaluating
scikit-learn estimators by cross-validation, and reporting the results.

.. toctree::
:maxdepth: 2
:hidden:

cross_validation_report

Visualization Displays
----------------------

A set of displays are available through the different reports. Find in this section
the API of each display.

.. toctree::
:maxdepth: 2
:hidden:

displays