Updated and trained the prediction.