Skip to content

Latest commit

 

History

History
 
 

Personalizer simulation in an Azure notebook

This tutorial simulates a Personalizer loop system which suggests which type of coffee a customer should order. The users and their preferences are stored in a user dataset. Information about the coffee is also available and stored in a coffee dataset.

Run the system for 10,000 requests and then create graph showing how fast and accurately the system learned.

Run an offline counterfactual evaluation to select an optimized learning policy, and apply that policy.

Run the system again, but for 2,000 requests and again create the graph showing the accuracy of the system.

Prerequisites

How to use this sample

All the instructions are in the notebook. Here is an abbreviated explanation.

  1. Create a new Azure notebook project.

  2. Upload the files in this directory to the Azure notebook project.

  3. Open the Personalizer.ipynb file and change the following values:

    • The value for <your-resource-name> in the personalization_base_url to the value for your Personalizer resource
    • The value for <your-resource-key> variable to one of the Personalizer resource keys.
  4. Run each cell from top to bottom. Wait until each cell is complete before running the next cell.

References