Skip to content

Commit 7c49271

Browse files
authored
Merge pull request #42 from Azure-Samples/tyclintw/update_readme
Update time and readme
2 parents 54d96d1 + 35ce34d commit 7c49271

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

demos/workshop-demo/README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ Microsoft recently announced the Azure Cognitive Service, Personalizer, aimed at
66
In this workshop you will learn the theory behind contextual bandits and how this applies to content personalization. We will walk you through setting up the service, writing your first application, and optimizing the policy using offline optimization.
77

88
## Workshop Instructions
9-
1. [Create free Azure/Microsoft account](https://azure.microsoft.com/en-us/free/)
10-
2. Provision free instance of Personalizer
9+
1. Provision a free instance of Personalizer
1110
1. Go to [Azure Portal](https://portal.azure.com)
12-
2. Search for "Cogitive Services"
13-
3. On Cognitive Services page click "Add"
14-
4. Search for "Personalizer" and click "Create"
15-
3. Install Python Client
11+
1. Click "Create a resource"
12+
1. Search the market place for "Cogitive Services Personalizer"
13+
1. Click the "Personalizer" panel
14+
1. Click the "Create" button
15+
1. Fill out the form and click "Create"
16+
1. Install Python Client
1617
```pip install azure.cognitiveservices.personalizer```
17-
3. Paste your endpoint into [line 34 of ./demo/demo.py](https://github.com/Azure-Samples/cognitive-services-personalizer-samples/blob/master/demos/workshop-demo/demo.py#L34)
18-
4. Paste your key into [line 35 of ./demo/demo.py](https://github.com/Azure-Samples/cognitive-services-personalizer-samples/blob/master/demos/workshop-demo/demo.py#L35)
19-
5. run `python ./demo/demo.py`
18+
1. Paste your endpoint into [line 34 of ./demo/demo.py](https://github.com/Azure-Samples/cognitive-services-personalizer-samples/blob/master/demos/workshop-demo/demo.py#L34)
19+
1. Paste your key into [line 35 of ./demo/demo.py](https://github.com/Azure-Samples/cognitive-services-personalizer-samples/blob/master/demos/workshop-demo/demo.py#L35)
20+
1. Change your Personalizer settings
21+
1. Go to your provisioned Personalizer instance
22+
1. Click the "Configuration" tab
23+
1. Change the "Reward wait time" to 5 seconds
24+
1. Change the "Model update frequency" to 30 seconds
25+
1. Click "Save"
26+
1. Run `python ./demo/demo.py`
2027

2128
## Next steps
2229
- [Personalizer](https://azure.microsoft.com/en-us/services/cognitive-services/personalizer/)

demos/workshop-demo/demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ def main():
7878
([Anna, Monday], 'sports'),
7979
([Anna, Sunday], 'politics')]
8080

81-
run(scenario, actions, client, 5400)
81+
run(scenario, actions, client, 10 * 60)
8282

8383
# Olympics started and both Tom and Anna are following sport news during weekend
8484
scenario = [([Tom, Monday], 'politics'),
8585
([Tom, Sunday], 'sports'),
8686
([Anna, Monday], 'sports'),
8787
([Anna, Sunday], 'sports')]
88-
run(scenario, actions, client, 5400)
88+
run(scenario, actions, client, 10 * 60)
8989

9090
if __name__== '__main__':
9191
main()

0 commit comments

Comments
 (0)