Answers for "shapes (none, 1) and (none, 5) are incompatible"

1

ValueError: Shapes (None, 1) and (None, 3) are incompatible

y_train = to_categorical(y_train, 3)
y_test = to_categorical(y_test, 3)
Posted by: Guest on April-15-2021
1

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
Posted by: Guest on March-21-2021

Code answers related to "shapes (none, 1) and (none, 5) are incompatible"

Browse Popular Code Answers by Language