Skip to content

Commit a2ff0f7

Browse files
[Cognitive Services - Personalizer] v1.1-preview.2 (#15699)
* personalizer v2.1-preview.1 * addresses feedback * minor manual cleanups * fix avocado errors * fix model validation errors * fix model validation errors * fix lintdiff * prettier run * rearrange * prettier * Adds description for missing parameters. * prettier run
1 parent 382a975 commit a2ff0f7

25 files changed

+2548
-3
lines changed

specification/cognitiveservices/data-plane/Personalizer/preview/v1.1-preview.2/Personalizer.json

Lines changed: 1898 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"evaluation": {
5+
"enableOfflineExperimentation": true,
6+
"name": "myFirstEvaluation",
7+
"startTime": "2018-12-19T00:00:00Z",
8+
"endTime": "2019-01-19T00:00:00Z",
9+
"policies": [
10+
{
11+
"name": "Custom learning settings 1",
12+
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5"
13+
}
14+
]
15+
},
16+
"Ocp-Apim-Subscription-Key": "{API key}"
17+
},
18+
"responses": {
19+
"201": {
20+
"headers": {
21+
"Location": "{endpoint}/personalizer/v1.1-preview.2/evaluations/{evaluationId}"
22+
},
23+
"body": {
24+
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a",
25+
"name": "myFirstEvaluation",
26+
"startTime": "2018-12-19T00:00:00Z",
27+
"endTime": "2019-01-19T00:00:00Z",
28+
"status": "pending",
29+
"policyResults": [
30+
{
31+
"name": "Custom learning settings 1",
32+
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5",
33+
"policySource": "Online"
34+
}
35+
],
36+
"featureImportance": [],
37+
"evaluationType": "Manual",
38+
"optimalPolicy": "",
39+
"creationTime": "2019-01-20T00:00:00Z"
40+
}
41+
}
42+
}
43+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"evaluationId": "id",
5+
"Ocp-Apim-Subscription-Key": "{API key}"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"evaluationId": "id",
5+
"Ocp-Apim-Subscription-Key": "{API key}"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a",
12+
"name": "myFirstEvaluation",
13+
"startTime": "2018-12-19T00:00:00Z",
14+
"endTime": "2019-01-19T00:00:00Z",
15+
"status": "completed",
16+
"policyResults": [
17+
{
18+
"name": "Custom learning settings 1",
19+
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5",
20+
"policySource": "Custom",
21+
"summary": [
22+
{
23+
"timeStamp": "2018-12-19T00:00:00Z",
24+
"ipsEstimatorNumerator": 0.0,
25+
"ipsEstimatorDenominator": 170.0,
26+
"snipsEstimatorDenominator": 308.25,
27+
"aggregateTimeWindow": "PT0S",
28+
"nonZeroProbability": 64.0,
29+
"sumOfSquares": 0.0,
30+
"confidenceInterval": 0.0,
31+
"averageReward": 0.0
32+
},
33+
{
34+
"timeStamp": "2018-12-19T00:05:00Z",
35+
"ipsEstimatorNumerator": 2.2,
36+
"ipsEstimatorDenominator": 196.0,
37+
"snipsEstimatorDenominator": 193.761,
38+
"aggregateTimeWindow": "PT0S",
39+
"nonZeroProbability": 68.0,
40+
"sumOfSquares": 2.424,
41+
"confidenceInterval": 0.015529361,
42+
"averageReward": 0.01122449
43+
}
44+
],
45+
"totalSummary": {
46+
"timeStamp": "2019-01-19T00:00:00Z",
47+
"ipsEstimatorNumerator": 22.2,
48+
"ipsEstimatorDenominator": 1906.0,
49+
"snipsEstimatorDenominator": 1993.761,
50+
"aggregateTimeWindow": "PT0S",
51+
"nonZeroProbability": 68.0,
52+
"sumOfSquares": 2.484,
53+
"confidenceInterval": 0.0015344538,
54+
"averageReward": 0.011647429
55+
}
56+
}
57+
],
58+
"featureImportance": [
59+
[
60+
"f1",
61+
"f2"
62+
],
63+
[
64+
"f3",
65+
"f4"
66+
]
67+
],
68+
"evaluationType": "Manual",
69+
"optimalPolicy": "Custom learning settings 1",
70+
"creationTime": "2019-01-20T00:00:00Z"
71+
}
72+
}
73+
}
74+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"Endpoint": "{Endpoint}"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": [
10+
{
11+
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a",
12+
"name": "myFirstEvaluation",
13+
"startTime": "2018-11-19T00:00:00Z",
14+
"endTime": "2018-12-19T00:00:00Z",
15+
"status": "completed",
16+
"policyResults": [
17+
{
18+
"name": "Custom learning settings 1",
19+
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5",
20+
"policySource": "Online",
21+
"totalSummary": {
22+
"timeStamp": "2018-12-19T00:00:00Z",
23+
"ipsEstimatorNumerator": 18.0,
24+
"ipsEstimatorDenominator": 36.0,
25+
"snipsEstimatorDenominator": 1.0,
26+
"aggregateTimeWindow": "PT0S",
27+
"nonZeroProbability": 1.1,
28+
"sumOfSquares": 12.28,
29+
"confidenceInterval": 0.100001775,
30+
"averageReward": 0.5
31+
}
32+
}
33+
],
34+
"featureImportance": [],
35+
"evaluationType": "Manual",
36+
"optimalPolicy": "Custom learning settings 1",
37+
"creationTime": "2019-01-19T00:00:00Z"
38+
},
39+
{
40+
"id": "21d03972-9130-4be9-8c8b-8ac3ec9b9dd1",
41+
"name": "mySecondEvaluation",
42+
"startTime": "2018-12-19T00:00:00Z",
43+
"endTime": "2019-01-19T00:00:00Z",
44+
"status": "pending",
45+
"policyResults": [],
46+
"featureImportance": [],
47+
"evaluationType": "Manual",
48+
"optimalPolicy": "",
49+
"creationTime": "2019-01-19T00:00:00Z"
50+
}
51+
]
52+
}
53+
}
54+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"eventId": "id",
4+
"Endpoint": "{Endpoint}",
5+
"Ocp-Apim-Subscription-Key": "{API key}"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"eventId": "id",
4+
"Endpoint": "{Endpoint}",
5+
"reward": {
6+
"value": 1.0
7+
},
8+
"Ocp-Apim-Subscription-Key": "{API key}"
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"Endpoint": "{Endpoint}"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"Ocp-Apim-Subscription-Key": "{API key}",
4+
"Endpoint": "{Endpoint}"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"dateRange": {
11+
"from": "2019-01-19T00:00:00+00:00",
12+
"to": "2019-02-19T00:00:00+00:00"
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"body": "id",
5+
"Ocp-Apim-Subscription-Key": "{API key}"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}

0 commit comments

Comments
 (0)