I passes this assignment 100% but I am still getting following error.
“Your model is not compatible with the dataset you defined earlier. Check that the loss function and last layer are compatible with one another.”
Anyone is having/had same issue?
This error usually happens when the loss function and model output don’t match. For example:
- Use
binary_crossentropy
for binary classification (output layer: 1 neuron with sigmoid
activation).
- Use
categorical_crossentropy
for multi-class classification (output layer: softmax
activation).
- Use
mse
for regression (output layer: 1 neuron, no activation).
Double-check your model’s last layer and loss function. Let me know if you need help fixing it! 
I am using categorical_crossentropy
as loss and softmax activation on the last layer.