keras: what is the difference between model.predict and model.predict_proba

前端 未结 3 1016
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-03 23:27

I found model.predict and model.predict_proba both give an identical 2D matrix representing probabilities at each categories for each row.

Wha

3条回答
  •  感动是毒
    2021-02-04 00:04

    Just a remark : In fact you have both predict and predict_proba in most classifiers (in Scikit for example). As already mentioned, the first one predicts the class, the second one provides probabilities for each class, classified in ascending order.

提交回复
热议问题