ValueError: Shapes (None, 1) and (None, 3) are incompatible
y_train = to_categorical(y_train, 3)
y_test = to_categorical(y_test, 3)
ValueError: Shapes (None, 1) and (None, 3) are incompatible
y_train = to_categorical(y_train, 3)
y_test = to_categorical(y_test, 3)
shapes (none, 1) and (none, 5) are incompatible
Change Categorical Cross Entropy to Binary Cross Entropy since your output label is binary. Also Change Softmax to Sigmoid since Sigmoid is the proper activation function for binary data
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us