vict0rsch / deep_learning

Deep Learning Resources and Tutorials using Keras and Lasagne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show accuracy is deprecated

jdelange opened this issue · comments

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"])

Solved my issue as follows:

  1. Changemodel.compile to:
    model.compile(loss='categorical_crossentropy', optimizer=rms, metrics=['accuracy'])
    As described here
  2. Remove show_accuracy=True from model.fit and model.evaluate

Hope this is of use to other beginners like me.

I updated it, thanks. Next time don't hesitate to submit a pull request, it'll be faster :)

commented

good answer