官术网_书友最值得收藏!

  • Deep Learning with Keras
  • Antonio Gulli Sujit Pal
  • 75字
  • 2021-07-02 23:58:06

Predicting output

When a net is trained, it can be course be used for predictions. In Keras, this is very simple. We can use the following method:

# calculate predictions
predictions = model.predict(X)

For a given input, several types of output can be computed, including a method:

  • model.evaluate(): This is used to compute the loss values
  • model.predict_classes(): This is used to compute category outputs
  • model.predict_proba(): This is used to compute class probabilities
主站蜘蛛池模板: 潼关县| 江津市| 云和县| 淮安市| 深水埗区| 湖南省| 萨嘎县| 繁峙县| 绥滨县| 万州区| 兴安盟| 济阳县| 托里县| 西峡县| 托克逊县| 天气| 荔浦县| 遵义县| 岳池县| 巩留县| 彰化县| 浪卡子县| 杨浦区| 赞皇县| 托克托县| 呼图壁县| 泾源县| 定日县| 靖西县| 嘉兴市| 姜堰市| 多伦县| 颍上县| 内丘县| 万州区| 建平县| 志丹县| 武宣县| 太仆寺旗| 类乌齐县| 顺昌县|