Inference
Inference is the process of using the model to produce predictions.
For inference, the weight parameters do not need to be updated, so the inference function is simpler than the training function:
infer_model = theano.function(
inputs=[x],
outputs=[y_pred]
)