Skip to content

Commit

Permalink
minimum value for validation dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
caillonantoine committed May 7, 2022
1 parent 16ea4a9 commit e26bdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_rave.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class args(Config):
]),
)

val = (2 * len(dataset)) // 100
val = max((2 * len(dataset)) // 100, 1)
train = len(dataset) - val
train, val = random_split(
dataset,
Expand Down

0 comments on commit e26bdfd

Please sign in to comment.