You are here

Sample Source Code: mlrequest Reinforcement Learning Python Sample Code

The mlrequest Reinforcement Learning Python Sample Code demonstrates how to call a reward endpoint after making a prediction, if the model's prediction resulted in a positive outcome. For example, if a user started watching the movie that was recommended, the reward endpoint should then be called to notify the model that it predicted a good action.