show accuracy is deprecated
jdelange opened this issue · comments
jdelange commented
Thanks, very well explained for a beginner like me.
Minor note: I get
The show accuracy argument is deprecated, instead you should pass the accuracy metric to the model at compile time: model.compile(optimizer, loss, metrics=["accuracy"])
jdelange commented
Solved my issue as follows:
- Change
model.compile
to:
model.compile(loss='categorical_crossentropy', optimizer=rms, metrics=['accuracy'])
As described here - Remove
show_accuracy=True
frommodel.fit
andmodel.evaluate
Hope this is of use to other beginners like me.
Victor Schmidt commented
I updated it, thanks. Next time don't hesitate to submit a pull request, it'll be faster :)
tarus commented
good answer