Skip to content
Discussion options

You must be logged in to vote

Oh, I found the mistake.
When I created an instance of the model I put the wrong number in the output_shape parameter.

This is the incorrect code:
model_2 = FashionMNISTModel_V2(input_shape=1,
hidden_units=10,
output_shape=1)

This is the correction:
model_2 = FashionMNISTModel_V2(input_shape=1,
hidden_units=10,
output_shape=len(class_names))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PiotrProzorowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant