-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Modify the doc following the v0.5 release, part 1 (#1004)
Fix #1007
- Loading branch information
1 parent
43578dd
commit fda5feb
Showing
16 changed files
with
167 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. _auto_examples: | ||
|
||
Examples | ||
======== | ||
User guide | ||
========== | ||
|
||
Below is a gallery of narrated notebook examples on how and why to use skore. | ||
They also serve as our user guide. | ||
They serve as our user guide. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Getting started | ||
--------------- | ||
|
||
We recommend first having a look at this example that serves as an overall and gentle | ||
introduction to skore. | ||
We recommend first having a look at the :ref:`example_quick_start` page. Then, the :ref:`example_skore_product_tour` provides an overall and gentle introduction to skore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
""" | ||
.. _example_quick_start: | ||
=========== | ||
Quick start | ||
=========== | ||
""" | ||
|
||
# %% | ||
# From your Python code, create and load a skore :class:`~skore.Project`: | ||
|
||
# %% | ||
import skore | ||
|
||
my_project = skore.create("quick_start", overwrite=True) | ||
|
||
# %% | ||
# This will create a skore project directory named ``quick_start.skore`` in your | ||
# current working directory. | ||
|
||
# %% | ||
# Evaluate your model using skore's :class:`~skore.CrossValidationReporter`: | ||
|
||
# %% | ||
from sklearn.datasets import load_iris | ||
from sklearn.svm import SVC | ||
|
||
X, y = load_iris(return_X_y=True) | ||
clf = SVC(kernel="linear", C=1, random_state=0) | ||
|
||
reporter = skore.CrossValidationReporter(clf, X, y, cv=5) | ||
|
||
# %% | ||
# Store the results in the skore project: | ||
|
||
# %% | ||
my_project.put("cv_reporter", reporter) | ||
|
||
# %% | ||
# Display results in your notebook: | ||
|
||
# %% | ||
reporter.plots.scores | ||
|
||
# %% | ||
reporter.plots.timing_normalized | ||
|
||
# %% | ||
# Finally, from your shell (in the same directory), start the UI: | ||
# | ||
# .. code-block:: bash | ||
# | ||
# $ skore launch "quick_start" | ||
# | ||
# This will open skore-ui in a browser window. | ||
# | ||
# .. image:: https://media.githubusercontent.com/media/probabl-ai/skore/main/sphinx/_static/images/2024_12_12_skore_demo_comp.gif | ||
# :alt: Getting started with ``skore`` demo | ||
# | ||
# .. admonition:: What's next? | ||
# | ||
# For a more in-depth guide, see our :ref:`example_skore_product_tour` page! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/diagnose/README.txt → examples/model_evaluation/README.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Diagnose | ||
-------- | ||
Model evaluation | ||
---------------- | ||
|
||
These examples illustrate how skore can help data scientists to improve their | ||
machine learning modelling thanks to diagnostics. |
6 changes: 3 additions & 3 deletions
6
examples/diagnose/plot_cross_validate.py → ...s/model_evaluation/plot_cross_validate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/diagnose/plot_train_test_split.py → ...model_evaluation/plot_train_test_split.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.