ValueError: Shapes (None, 10) and (None, 1, 1, 10) are incompatible in keras model.fit code example
Example: ValueError: Shapes (None, 1) and (None, 3) are incompatible
y_train = to_categorical(y_train, 3)
y_test = to_categorical(y_test, 3)
y_train = to_categorical(y_train, 3)
y_test = to_categorical(y_test, 3)