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

  • 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
主站蜘蛛池模板: 兴安县| 富顺县| 泰州市| 竹北市| 柯坪县| 吉木萨尔县| 汤阴县| 修武县| 潍坊市| 丰县| 新乐市| 嘉禾县| 乌拉特后旗| 呼图壁县| 麦盖提县| 屯门区| 阿坝县| 沙洋县| 扶余县| 福贡县| 奉化市| 甘孜县| 民丰县| 辽宁省| 梧州市| 宝鸡市| 肇源县| 仙桃市| 万山特区| 通山县| 喜德县| 和硕县| 调兵山市| 大渡口区| 宜兰市| 甘南县| 南靖县| 江孜县| 瑞丽市| 墨竹工卡县| 红河县|