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: Allow to have dropdown menu to show the API of reporters #1302

Closed
wants to merge 4 commits into from
Closed
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
153 changes: 0 additions & 153 deletions sphinx/api.rst

This file was deleted.

2 changes: 1 addition & 1 deletion sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def reset_mpl(gallery_conf, fname):
# The module you locally document uses None
"skore": None,
},
"backreferences_dir": "generated",
"backreferences_dir": "reference/api",
"doc_module": "skore",
"reset_modules": (reset_mpl, "seaborn"),
"abort_on_example_error": True,
Expand Down
2 changes: 1 addition & 1 deletion sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Skore is just at the beginning of its journey, but we’re shipping fast! Freque

install
auto_examples/index
api
reference/index
contributing_link
15 changes: 15 additions & 0 deletions sphinx/reference/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
API
===

This page lists all the public functions and classes of the skore package.

.. warning ::

This code is still in development. **The API is subject to change.**

.. currentmodule:: skore

.. toctree::
:maxdepth: 2

report
18 changes: 18 additions & 0 deletions sphinx/reference/report.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Report
======

.. currentmodule:: skore

This section contains documentation for different types of reports available in skore.

Single Estimator Report
-----------------------

The :doc:`report/estimator_report` provides comprehensive reporting capabilities for individual
scikit-learn estimators, including metrics, visualizations, and evaluation tools.

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

report/estimator_report
56 changes: 56 additions & 0 deletions sphinx/reference/report/estimator_report.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Report for a single estimator
============================

.. currentmodule:: skore

The class :class:`EstimatorReport` provides a report allowing to inspect and
evaluate a scikit-learn estimator in an interactive way. The functionalities of the
report are accessible through accessors.

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

EstimatorReport

.. rubric:: Methods

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

EstimatorReport.help

.. rubric:: Metrics

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

EstimatorReport.metrics

Metrics
-------

The `metrics` accessor helps you to evaluate the statistical performance of your
estimator.

.. autosummary::
:toctree: ../api/
:nosignatures:
:template: autosummary/accessor_method.rst

EstimatorReport.metrics.help
EstimatorReport.metrics.report_metrics
EstimatorReport.metrics.custom_metric
EstimatorReport.metrics.accuracy
EstimatorReport.metrics.brier_score
EstimatorReport.metrics.log_loss
EstimatorReport.metrics.precision
EstimatorReport.metrics.precision_recall
EstimatorReport.metrics.prediction_error
EstimatorReport.metrics.r2
EstimatorReport.metrics.recall
EstimatorReport.metrics.rmse
EstimatorReport.metrics.roc
EstimatorReport.metrics.roc_auc