shaheen-syed / CNN-Non-Wear-Time-Algorithm

A novel algorithm to detect non-wear time from raw accelerometer data using convolutional neural networks.
7 stars 3 forks source link

predict_classes deprecated #11

Open muschellij2 opened 8 months ago

muschellij2 commented 8 months ago

https://stackoverflow.com/questions/68836551/keras-attributeerror-sequential-object-has-no-attribute-predict-classes

https://github.com/shaheen-syed/CNN-Non-Wear-Time-Algorithm/blob/232d02e736063e3f6da1ed68c4a9fffbe17f456d/functions/raw_non_wear_functions.py#L493

muschellij2 commented 8 months ago

I think should fix it?

start_label = np.argmax(cnn_model.predict(start_episode), axis=-1)
stop_label = np.argmax(cnn_model.predict(stop_episode), axis=-1)