diff --git a/examples/getting_started/plot_quick_start.py b/examples/getting_started/plot_quick_start.py index 0afe6a65c..12268ded3 100644 --- a/examples/getting_started/plot_quick_start.py +++ b/examples/getting_started/plot_quick_start.py @@ -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? # diff --git a/examples/model_evaluation/plot_train_test_split.py b/examples/model_evaluation/plot_train_test_split.py index d9defc263..326ecac16 100644 --- a/examples/model_evaluation/plot_train_test_split.py +++ b/examples/model_evaluation/plot_train_test_split.py @@ -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 # ================================ @@ -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 ) @@ -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()