Skip to content

Commit

Permalink
train size and random state optional
Browse files Browse the repository at this point in the history
  • Loading branch information
fishingguy456 committed Jun 13, 2022
1 parent 15bab7b commit 3ac4016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgtools/utils/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def parser():
parser.add_argument("--nnunet_study_name", type=str, default=None,
help="Name of the study to be used for nn-Unet.")

parser.add_argument("train_size", type=float, default=1.0,
parser.add_argument("--train_size", type=float, default=1.0,
help="The proportion of data to be used for training, as a decimal.")

parser.add_argument("random_state", type=int, default=42,
parser.add_argument("--random_state", type=int, default=42,
help="The random state to be used for the train-test-split.")

return parser.parse_known_args()[0]

0 comments on commit 3ac4016

Please sign in to comment.