Skip to content

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

Answered by stes
zhuyuhang4 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by MMathisLab
Comment options

You must be logged in to vote
1 reply
@MMathisLab
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants