Keras: No function like probas_to_classes

Created on 24 Mar 2017  路  4Comments  路  Source: keras-team/keras

I tried
from keras.utils.np_utils import probas_to_classes
but didn't find it.
What is new functionality?

stale

Most helpful comment

probas.argmax(axis=-1)

All 4 comments

probas.argmax(axis=-1)

What is the replacement for "probas_to_classes" in keras 2.0.3 ?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

In case of pred=model.predict(img)

I used (pred[0:]) to fetch the class label for the decision making

I case of Binary class prediction (pred[0:]) results out "1" or "0"

Was this page helpful?
0 / 5 - 0 ratings