Skip to content

Commit

Permalink
fixed val-percentage and test-percentage being optional (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fl4m3Ph03n1x authored Apr 6, 2022
1 parent d706872 commit e5f81bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions darwin/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ def __init__(self):
"split", help="Splits a local dataset following random and stratified split types."
)
parser_split.add_argument("dataset", type=str, help="Local dataset name to split.")
parser_split.add_argument("-v", "--val-percentage", type=float, required=True, help="Validation percentage.")
parser_split.add_argument(
"-t", "--test-percentage", type=float, required=False, default=0, help="Test percentage."
)
parser_split.add_argument("-v", "--val-percentage", required=True, type=float, help="Validation percentage.")
parser_split.add_argument("-t", "--test-percentage", required=True, type=float, help="Test percentage.")
parser_split.add_argument("-s", "--seed", type=int, required=False, default=0, help="Split seed.")

# List Files
Expand Down

0 comments on commit e5f81bf

Please sign in to comment.