ValueError: Digitalized labels does not have elements close enough to bin index 1. The bin index should be in the range of the labels values. #106
Unanswered
FrancescaGuo
asked this question in
Q&A
Replies: 3 comments 1 reply
|
Hi @FrancescaGuo , apologies for the late response here. Please also see my related reply here: #125 (comment) The code uses the default number of bins (100) and partitions the behavioral data into this number of bins. In your example, it would be a reasonable choice to set the number of bins to the number of discrete labels (14). |
0 replies
|
I created an issue to improve the code here: #128 In the meantime, please consider setting |
0 replies
|
Hello @FrancescaGuo , just checking, were you able to fix the issue by adapting the bin size? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have been struggling with this value error when I use the Consistency demo codes on my own mice behavioral data. Here are a few screenshots for my codes and a full description of the error. I have trained the Cebra_Behavior model with mice neural data and behavioral data. I successfully get the embeddings and visualize them but get stuck when I try to calculate the consistency of the embeddings between mice.



'Mouselabel' is a 2D list which has the same shape as my embeddings. 'Names' is a list of integers with the mouse ID (1 to 14).
I would really appreciate it if someone has any clue of what I did wrong.
All reactions