Skip to content

Commit

Permalink
Address Guillaume's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturoAmorQ committed Apr 29, 2024
1 parent 900c6f7 commit d025869
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Binary file modified figures/cross_validation_train_test_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/nested_cross_validation_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions figures/plot_parameter_tuning_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ def plot_cv_indices(cv, X, y, ax, lw=50):
)
ax.legend(
[
Patch(color=cmap_cv(0.9)),
Patch(color=cmap_cv(0.5)),
Patch(color=cmap_cv(0.02)),
Patch(color=cmap_cv(0.9)),
],
[
"Testing samples\n(reserved for\nfinal evaluation)",
"Training samples",
"Validation samples",
"Validation samples\n(for hyperparameter\ntuning)",
"Testing samples\n(reserved for\nfinal evaluation)",
],
loc=(1.02, 0.5),
loc=(1.02, 0.04),
labelspacing = 1,
)
return ax

Expand Down Expand Up @@ -128,16 +129,17 @@ def plot_cv_nested_indices(cv_inner, cv_outer, X, y, ax, lw=50):
)
ax.legend(
[
Patch(color=cmap_cv(0.9)),
Patch(color=cmap_cv(0.5)),
Patch(color=cmap_cv(0.02)),
Patch(color=cmap_cv(0.9)),
],
[
"Testing samples\n(reserved for\nouter evaluation)",
"Training samples",
"Validation samples",
"Validation samples\n(for hyperparameter\ntuning)",
"Testing samples\n(reserved for\nfinal evaluation)",
],
loc=(1.06, 0.85),
loc=(1.07, 0.77),
labelspacing = 1,
)
return ax

Expand Down

0 comments on commit d025869

Please sign in to comment.