Predicting output
Once a net is trained, it can of course be used for making predictions. In TensorFlow, this is very simple. We can use this method:
# Making predictions.
predictions = model.predict(X)
For a given input, several types of output can be computed including a method model.evaluate()
used to compute the loss values, a method model.predict_classes()
used to compute category outputs, and a method model.predict_proba()
used to compute class probabilities.