guillaume-chevalier / LSTM-Human-Activity-Recognition

Human Activity Recognition example using TensorFlow on smartphone sensors dataset and an LSTM RNN. Classifying the type of movement amongst six activity categories - Guillaume Chevalier
MIT License
3.35k stars 938 forks source link

IndexError: index 3 is out of bounds for axis 0 with size 3 #38

Closed robinfays12 closed 4 years ago

robinfays12 commented 4 years ago

Hello,

I'm trying to run your code with a smaller Dataset. I have : X_train.shape (61,100,75) y_train.shape (61,1) X_test.shape (27,100,75) y_test.shape (27,1)

I changed the number of classes (3) but I still have this error :

image

Do you know where is my problem ?

Thanks a lot for your help and thank you for your code !!

Robin Fays