-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Milestone
Description
Floating point issue when separating data
0.7+0.2+0.1=0.99999
which raises error:
if train_prop + selection_prop + validation_prop != 1.0:
--> 385 raise ValueError("The sum of train_prop, selection_prop and "
386 "validation_prop cannot differ from 1.0")
The code is located here:
cobra/cobra/preprocessing/preprocessor.py
Lines 384 to 386 in 0133435
| if train_prop + selection_prop + validation_prop != 1.0: | |
| raise ValueError("The sum of train_prop, selection_prop and " | |
| "validation_prop cannot differ from 1.0") |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers