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

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
主站蜘蛛池模板: 本溪市| 清新县| 丰都县| 遂平县| 金寨县| 改则县| 汝州市| 巧家县| 临猗县| 临猗县| 宿迁市| 阳东县| 福泉市| 佛学| 郁南县| 内丘县| 荥阳市| 建水县| 多伦县| 界首市| 哈密市| 邢台市| 仙居县| 文水县| 乐清市| 三门县| 武宣县| 邹平县| 无锡市| 游戏| 天祝| 旬阳县| 平罗县| 雷州市| 安吉县| 常宁市| 广汉市| 调兵山市| 寻甸| 麻江县| 微山县|