ValueError: Replace has to be set to True when upsampling the population frac > 1
valmik-patel opened this issue · 1 comments
valmik-patel commented
This error occurs when creating a GenericDataset
with splits
File: aequitas/src/aequitas/flow/datasets/generic.py
Line: 183
This happens because the value of adjusted_frac
can become greater than 1 for the last split due to rounding issues. A potential solution would be to cap the value of adjusted_frac
to 1
Example: Creating a GenericDataset
with 11 examples and two splits (0.7 and 0.3) will throw this error
This error happened on a Google Colab notebook running the repository
valmik-patel commented
This issue has been fixed by #168
Closing the issue now