Skip to content
Snippets Groups Projects
Commit 85405f4d authored by François  LAURENT's avatar François LAURENT
Browse files

fixes #18

parent 1e50a107
No related branches found
No related tags found
No related merge requests found
Pipeline #94467 passed
...@@ -186,14 +186,14 @@ def subset_size(ntot, train_share, val_share, test_share): ...@@ -186,14 +186,14 @@ def subset_size(ntot, train_share, val_share, test_share):
while ndelta < 0: while ndelta < 0:
if 0 < val_share: if 0 < val_share:
nval += 1 nval += 1
ndelta -= 1 ndelta += 1
if ndelta < 0: if ndelta < 0:
if 0 < test_share: if 0 < test_share:
ntest += 1 ntest += 1
ndelta -= 1 ndelta += 1
if ndelta < 0: if ndelta < 0:
ntrain += 1 ntrain += 1
ndelta -= 1 ndelta += 1
while 0 < ndelta: while 0 < ndelta:
if 0 < train_share: if 0 < train_share:
ntrain -= 1 ntrain -= 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment