Tell us what’s happening:
Describe your issue in detail here.
Please help me fix this error!?
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Challenge: Cat and Dog Image Classifier
Link to the challenge:
Apparently changing:
model.compile(optimizer='adam',
loss=tf.losses.CategoricalCrossentropy(from_logits=True),
metrics=['accuracy'])
to:
model.compile(optimizer='adam',
loss=tf.losses.SparseCategoricalCrossentropy(from_logits=True),
metrics=['accuracy'])
fixed the error.
I feel funny tweaking all kinds of knobs on black boxes without knowing what the black boxes do …
Jagaya
3
I’d recommend looking into the documentation
I will most certainly do that
system
Closed
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.