Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into is/1002
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jan 25, 2025
2 parents f7ecb17 + 87111cf commit ad26eab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
7 changes: 7 additions & 0 deletions examples/getting_started/plot_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
my_project.put("df_cv_report_metrics", df_cv_report_metrics)
my_project.put("roc_plot", roc_plot)

# %%
# Retrieve what was stored:

# %%
df_get = my_project.get("df_cv_report_metrics")
df_get

# %%
# .. admonition:: What's next?
#
Expand Down
23 changes: 2 additions & 21 deletions examples/model_evaluation/plot_train_test_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
:func:`skore.train_test_split` to get assistance when developing ML/DS projects.
"""

# %%
# Creating and loading the skore project
# ======================================
#
# We create and load the skore project from the current directory:

# %%
import skore

my_project = skore.open("my_project", create=True)

# %%
# Train-test split in scikit-learn
# ================================
Expand Down Expand Up @@ -116,6 +105,8 @@
# scikit-learn:

# %%
import skore

X_train, X_test, y_train, y_test = skore.train_test_split(
X, y, test_size=0.2, random_state=0
)
Expand Down Expand Up @@ -241,13 +232,3 @@
X_train, X_test, y_train, y_test = skore.train_test_split(
X, y, random_state=0, shuffle=False
)

# %%
# Cleanup the project
# -------------------
#
# Let's clear the skore project (to avoid any conflict with other documentation
# examples).

# %%
my_project.clear()

0 comments on commit ad26eab

Please sign in to comment.