The "show_accuracy" argument is deprecated
See original GitHub issueC:\Program Files\Anaconda2\lib\site-packages\keras\models.py:635: UserWarning: he “show_accuracy” argument is deprecated, instead you should pass the "accurac " metric to the model at compile time:
model.compile(optimizer, loss, metrics=["accuracy"])
warnings.warn('The “show_accuracy” argument is deprecated, ’
In your example application:
model.fit(X_train, Y_train,
batch_size={{choice([64, 128])}},
nb_epoch=1,
show_accuracy=True,
verbose=2,
validation_data=(X_test, Y_test))
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
show accuracy is deprecated · Issue #5 · vict0rsch/deep_learning ...
The show accuracy argument is deprecated, instead you should pass the accuracy metric to the model at compile time: model.compile(optimizer, loss, ...
Read more >Unrecognized keyword arguments: {'show_accuracy': True ...
In older versions of Keras (< 1) the argument show_accuracy=True does exist. EDIT 2: With tensorflow 2.0 keras is included. With this version ......
Read more >Method CreateAsync - ArcGIS Developers
Creates asynchronously a new instance of the ArcGISPortal class that represents ArcGIS Online (i.e https://www.arcgis.com as Portal Uri).
Read more >Chest X-Ray Pneumonia CNN Classification | Kaggle
... FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 ......
Read more >Changelog · Prodigy · An annotation tool for AI, Machine ...
The deprecated --api arguments on the built-in recipes have been removed ... new, Show accuracy per entity type, tag or text category in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue arises from:
model.fit(X_train, y_train_ohe, nb_epoch=50, batch_size=300, verbose=1, validation_split=0.1, show_metrics=True)
which is from a book (Python Machine Learning by @Rasbt https://github.com/rasbt/python-machine-learning-book. It’s awesome, but I guess the code gets old quick!)The new way of doing it means to add
metrics=['accuracy'] to the
model.compilesection, rather than the
model.fit`:model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy'])
I’ve just run into this issue, and changing the code in these places worked for me 😄@isrugeek As noted above: replace the
show_accuracy=True
statement withmetrics=['accuracy']
I’m not sure exactly where this applies, but it is either in the code you are writing, or it is in existing (example) code in Keras/Hyperas if it has not yet been fixed. Note: I had too many issues with Hyperas, I used Hyperopt instead.