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
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). |
Beta Was this translation helpful? Give feedback.
-
I created an issue to improve the code here: #128 In the meantime, please consider setting |
Beta Was this translation helpful? Give feedback.
-
Hello @FrancescaGuo , just checking, were you able to fix the issue by adapting the bin size? |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions