ValueError: Found input variables with inconsistent numbers of samples: [964, 2650] #60
-
`from sklearn.metrics import accuracy_score ---> print(f"The accuracy is {100 * accuracy_score(hypno, hypno_pred):.3f}%")` I did it with the edf file, which is open data, and there is an error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @PhD-GOAT, The |
Beta Was this translation helpful? Give feedback.
Hi @PhD-GOAT,
The
hypno_pred
variable has a 30-sec resolution, i.e. one value per 30-sec of data. I think that the resolution of yourhypno
variable is probably not 30-seconds, but shorter (5, 10 or 15-seconds) which explains why the sizes of the two arrays are not the same.