Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaincom committed Oct 16, 2024
1 parent 727d448 commit 97ad4a7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 20 deletions.
8 changes: 7 additions & 1 deletion examples/00_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,17 @@
"id": "13",
"metadata": {},
"source": [
"# Back to the dashboard\n",
"## Back to the dashboard\n",
"\n",
"1. On the top left, create a new `View`.\n",
"2. From the `Elements` section on the bottom left, you can add stored items to this view, either by double-cliking on them or by doing drag-and-drop."
]
},
{
"cell_type": "markdown",
"id": "14",
"metadata": {},
"source": []
}
],
"metadata": {
Expand Down
5 changes: 4 additions & 1 deletion examples/00_getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
project.put("my_fitted_pipeline", my_pipeline)

# %% [markdown]
# # Back to the dashboard
# ## Back to the dashboard
#
# 1. On the top left, create a new `View`.
# 2. From the `Elements` section on the bottom left, you can add stored items to this view, either by double-cliking on them or by doing drag-and-drop.

# %% [markdown]
#
18 changes: 9 additions & 9 deletions examples/01_basic_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"id": "1",
"metadata": {},
"source": [
"# Introduction\n",
"## Introduction\n",
"\n",
"This guide is to illustrate some of the main features that `skore` currently provides. `skore` an open-source package that aims at enable data scientist to:\n",
"1. Store objects of different types from their Python code: python lists and dictionaries, `numpy` arrays, `pandas` dataframes, `scikit-learn` fitted pipelines, `matplotlib` / `plotly` / `altair` figures, and more.\n",
Expand All @@ -28,7 +28,7 @@
"id": "2",
"metadata": {},
"source": [
"## Imports"
"Imports:"
]
},
{
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "4",
"metadata": {},
"source": [
"# Initialize and use a Project\n",
"## Initialize and use a Project\n",
"\n",
"From your shell, initialize a `skore` project, here named `project.skore`, that will be in your current working directory:\n",
"```bash\n",
Expand Down Expand Up @@ -113,7 +113,7 @@
"id": "7",
"metadata": {},
"source": [
"## Storing an integer"
"### Storing an integer"
]
},
{
Expand Down Expand Up @@ -241,7 +241,7 @@
"id": "21",
"metadata": {},
"source": [
"## Storing a string"
"### Storing a string"
]
},
{
Expand Down Expand Up @@ -368,7 +368,7 @@
"id": "33",
"metadata": {},
"source": [
"## Storing many kinds of data"
"### Storing many kinds of data"
]
},
{
Expand Down Expand Up @@ -455,7 +455,7 @@
"id": "42",
"metadata": {},
"source": [
"## Data visualization\n",
"### Data visualization\n",
"\n",
"Note that, in the dashboard, the interactivity of plots is supported, for example for `altair` and `plotly`."
]
Expand Down Expand Up @@ -593,7 +593,7 @@
"id": "53",
"metadata": {},
"source": [
"## Scikit-learn models and pipelines\n",
"### Scikit-learn models and pipelines\n",
"\n",
"As `skore` is developed by :probabl., the spin-off of scikit-learn, `skore` treats scikit-learn models and pipelines as first-class citizens.\n",
"\n",
Expand Down Expand Up @@ -669,7 +669,7 @@
"metadata": {},
"source": [
"---\n",
"# Manipulating the skore UI\n",
"## Manipulating the skore UI\n",
"\n",
"The following is just some `skore` strings that we generate in order to provide more context on the obtained report."
]
Expand Down
18 changes: 9 additions & 9 deletions examples/01_basic_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# # Basic usage of `skore`

# %% [markdown]
# # Introduction
# ## Introduction
#
# This guide is to illustrate some of the main features that `skore` currently provides. `skore` an open-source package that aims at enable data scientist to:
# 1. Store objects of different types from their Python code: python lists and dictionaries, `numpy` arrays, `pandas` dataframes, `scikit-learn` fitted pipelines, `matplotlib` / `plotly` / `altair` figures, and more.
Expand All @@ -27,7 +27,7 @@
# This notebook stores some items that have been used to generated a `skore` report available at [this link](https://sylvaincom.github.io/files/probabl/skore/01_basic_usage.html).

# %% [markdown]
# ## Imports
# Imports:

# %%
import altair as alt
Expand All @@ -47,7 +47,7 @@
from skore.item import MediaItem

# %% [markdown]
# # Initialize and use a Project
# ## Initialize and use a Project
#
# From your shell, initialize a `skore` project, here named `project.skore`, that will be in your current working directory:
# ```bash
Expand Down Expand Up @@ -83,7 +83,7 @@
project = load("project.skore")

# %% [markdown]
# ## Storing an integer
# ### Storing an integer

# %% [markdown]
# Now, let us store our first object, for example an integer:
Expand Down Expand Up @@ -127,7 +127,7 @@
project.list_item_keys()

# %% [markdown]
# ## Storing a string
# ### Storing a string

# %% [markdown]
# We just stored a integer, now let us store some text using strings!
Expand Down Expand Up @@ -182,7 +182,7 @@ def my_func(x):
project.put("my_string_4", f"The value of `x` is {x} and the value of `y` is {y}.")

# %% [markdown]
# ## Storing many kinds of data
# ### Storing many kinds of data

# %% [markdown]
# Python list:
Expand Down Expand Up @@ -216,7 +216,7 @@ def my_func(x):
project.put("my_df", my_df)

# %% [markdown]
# ## Data visualization
# ### Data visualization
#
# Note that, in the dashboard, the interactivity of plots is supported, for example for `altair` and `plotly`.

Expand Down Expand Up @@ -289,7 +289,7 @@ def my_func(x):
project.put("my_pil_image", my_pil_image)

# %% [markdown]
# ## Scikit-learn models and pipelines
# ### Scikit-learn models and pipelines
#
# As `skore` is developed by :probabl., the spin-off of scikit-learn, `skore` treats scikit-learn models and pipelines as first-class citizens.
#
Expand Down Expand Up @@ -324,7 +324,7 @@ def my_func(x):

# %% [markdown]
# ---
# # Manipulating the skore UI
# ## Manipulating the skore UI
#
# The following is just some `skore` strings that we generate in order to provide more context on the obtained report.

Expand Down

0 comments on commit 97ad4a7

Please sign in to comment.