|
1 | | -Open the Personalization.ipynb in Azure notebooks. |
| 1 | +# Personalizer simulation in an Azure notebook |
2 | 2 |
|
3 | | -Copy actionfeatures.json, example.json, rankrequest.json to the same folder. |
| 3 | +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](usrs.json). Information about the coffee is also available and stored in a [coffee dataset](coffee.json). |
4 | 4 |
|
5 | | -Make sure you update the personalization_base_url and subscription_key with your valid endpoints. (Please note that after you provision a Personalizer instance, it could take some time for the instance to be ready. Please check the Settings menu blade. If it displays the settings correctly, it means that the instance is ready.) |
| 5 | +Run the system for 10,000 requests and then create graph showing how fast and accurately the system learned. |
| 6 | + |
| 7 | +Run an offline counterfactual evaluation to select an optimized learning policy, and apply that policy. |
| 8 | + |
| 9 | +Run the system again, but for 2,000 requests and again create the graph showing the accuracy of the system. |
| 10 | + |
| 11 | +## Prerequisites |
| 12 | + |
| 13 | +* [Azure notebooks](https://notebooks.azure.com/) account |
| 14 | +* [Personalizer resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesPersonalizer) |
| 15 | + |
| 16 | +## How to use this sample |
| 17 | + |
| 18 | +All the instructions are in the notebook. Here is an abbreviated explanation. |
| 19 | + |
| 20 | +1. Create a new Azure notebook project. |
| 21 | +1. Upload the files in this directory to the Azure notebook project. |
| 22 | +1. Open the Personalizer.ipynb file and change the following values: |
| 23 | + |
| 24 | + * The value for `<your-resource-name>` in the `personalization_base_url` to the value for your Personalizer resource |
| 25 | + * The value for `<your-resource-key>` variable to one of the Personalizer resource keys. |
| 26 | + |
| 27 | +1. Run each cell from top to bottom. Wait until each cell is complete before running the next cell. |
| 28 | + |
| 29 | +## References |
| 30 | + |
| 31 | +* [Full sample](https://github.com/Azure-Samples/cognitive-services-personalizer-samples/tree/master/samples/azurenotebook) |
| 32 | +* [Tutorial on docs.microsoft.com](https://docs.microsoft.com/azure/cognitive-services/personalizer/tutorial-use-azure-notebook-generate-loop-data) |
0 commit comments