Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show accuracy is deprecated #5

Closed
jdelange opened this issue Jun 27, 2016 · 3 comments
Closed

show accuracy is deprecated #5

jdelange opened this issue Jun 27, 2016 · 3 comments

Comments

@jdelange
Copy link

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
Copy link
Author

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.

@vict0rsch
Copy link
Owner

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

@gontthias
Copy link

good answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants