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

  • 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
主站蜘蛛池模板: 临朐县| 滨州市| 泰来县| 县级市| 公主岭市| 兰溪市| 灵璧县| 三门县| 广德县| 交城县| 连山| 清远市| 舞钢市| 马关县| 彭州市| 安新县| 饶平县| 木里| 胶州市| 彩票| 雅江县| 正镶白旗| 金川县| 巴青县| 磐石市| 天柱县| 焉耆| 临汾市| 双峰县| 芒康县| 南郑县| 林芝县| 综艺| 贺兰县| 富宁县| 措美县| 陕西省| 江华| 平陆县| 鄂托克旗| 象山县|