- 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
推薦閱讀
- 3ds Max Speed Modeling for 3D Artists
- 深入淺出SSD:固態存儲核心技術、原理與實戰(第2版)
- 單片機原理及應用系統設計
- Learning Stencyl 3.x Game Development Beginner's Guide
- Learning Game Physics with Bullet Physics and OpenGL
- OUYA Game Development by Example
- Visual Media Processing Using Matlab Beginner's Guide
- STM32嵌入式技術應用開發全案例實踐
- 新編電腦組裝與硬件維修從入門到精通
- 觸摸屏應用技術從入門到精通
- Instant Website Touch Integration
- 計算機組成技術教程
- 嵌入式系統設計大學教程(第2版)
- 從企業級開發到云原生微服務:Spring Boot實戰
- 現代多媒體技術及應用