Skip to content

Commit

Permalink
change options
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 3, 2024
1 parent 0943c48 commit 7382e97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clinicadl/commandline/modules_options/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from clinicadl.config.config_utils import get_default_from_config_class as get_default
from clinicadl.config.config_utils import get_type_from_config_class as get_type
from clinicadl.splitter.validation import ValidationConfig
from clinicadl.splitter.config import SplitConfig

# Cross Validation
n_splits = click.option(
"--n_splits",
type=get_type("n_splits", ValidationConfig),
default=get_default("n_splits", ValidationConfig),
type=get_type("n_splits", SplitConfig),
default=get_default("n_splits", SplitConfig),
help="If a value is given for k will load data of a k-fold CV. "
"Default value (0) will load a single split.",
show_default=True,
Expand All @@ -17,7 +17,7 @@
"--split",
"-s",
type=int, # get_type("split", config.ValidationConfig),
default=get_default("split", ValidationConfig),
default=get_default("split", SplitConfig),
multiple=True,
help="Train the list of given splits. By default, all the splits are trained.",
show_default=True,
Expand Down

0 comments on commit 7382e97

Please sign in to comment.