`bins` must increase monotonically, when an array
AlexandreLab opened this issue · comments
AlexandreLab commented
Hello,
Thank you for creating this implementation of cLHS in Python.
I ran it on my computer and I got an error. This happens when the number of samples is high and the cumulative distribution of my data has the same value for a long time.
I did a bit of research and found out that the get_strata function is not always returning a monotonic quantiles list which raises an error when used in the count_matrix function. I am not sure why this is the case but it seems that rounding the quantiles list fix the problem.
BR,
Alexandre
Zhonghua Zheng commented
Hi Alex, thank you very much! You may create a pull request.