ValueError: Digitalized labels does not have elements close enough to bin index 4. The bin index should be in the range of the labels values. #125
-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @zhuyuhang4 , this is expected behavior --- you need a sufficient number of samples within each bin of the histogram that is internally created. Do you have some example code to repro your issue? But effectively, using a smaller number of bins is the correct way to go. |
Beta Was this translation helpful? Give feedback.
-
I created an issue to improve the code here: #128 In the meantime, please consider setting n_bins manually to the number of discrete labels. Let me know if this works! |
Beta Was this translation helpful? Give feedback.
-
Hi @zhuyuhang4 , did this address your question/were you able to solve the issue? If so, please mark the answer, or happy to address any follow up question! |
Beta Was this translation helpful? Give feedback.
Hi @zhuyuhang4 , this is expected behavior --- you need a sufficient number of samples within each bin of the histogram that is internally created. Do you have some example code to repro your issue? But effectively, using a smaller number of bins is the correct way to go.