forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Users/sharathm/putmodelapi (Azure#17386)
* Put Model api for Personalizer * Moved api to v1.1-preview.3 and renamed api from model to signedmodel * Change api to allowed downloading signed and unsigned models. * Updates to add new parameter for signed for Get model api * Renamed example file reference * Fixed errors in model validation. * Fixed errors from prettier check. * Changed examples to match the generated files. * Manual updates to address breaking change issues * Updated as per feedback from api review meeting * Added description for Ocp-Apim-Subscription-Key * Renamed Evaluation_Apply to Evaluations_Apply * Reverting back the renaming operation since it was done in error. * Add description for body parameter of model/put call Co-authored-by: Decision Service <[email protected]>
- Loading branch information
1 parent
a37b44b
commit 5e0b70c
Showing
26 changed files
with
2,638 additions
and
0 deletions.
There are no files selected for viewing
1,981 changes: 1,981 additions & 0 deletions
1,981
...cation/cognitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/Personalizer.json
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
...eservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Evaluations_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"evaluation": { | ||
"enableOfflineExperimentation": true, | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"policies": [ | ||
{ | ||
"name": "Custom learning settings 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
} | ||
] | ||
}, | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "pending", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom learning settings 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5", | ||
"policySource": "Online" | ||
} | ||
], | ||
"featureImportance": [], | ||
"evaluationType": "Manual", | ||
"optimalPolicy": "", | ||
"creationTime": "2019-01-20T00:00:00Z" | ||
}, | ||
"headers": { | ||
"Location": "{endpoint}/personalizer/v1.1-preview.3/evaluations/{evaluationId}" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...eservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Evaluations_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"evaluationId": "id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...tiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Evaluations_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"evaluationId": "id" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "completed", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom learning settings 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5", | ||
"policySource": "Custom", | ||
"summary": [ | ||
{ | ||
"timeStamp": "2018-12-19T00:00:00Z", | ||
"ipsEstimatorNumerator": 0, | ||
"ipsEstimatorDenominator": 170, | ||
"snipsEstimatorDenominator": 308.25, | ||
"aggregateTimeWindow": "PT0S", | ||
"nonZeroProbability": 64, | ||
"sumOfSquares": 0, | ||
"confidenceInterval": 0, | ||
"averageReward": 0 | ||
}, | ||
{ | ||
"timeStamp": "2018-12-19T00:05:00Z", | ||
"ipsEstimatorNumerator": 2.2, | ||
"ipsEstimatorDenominator": 196, | ||
"snipsEstimatorDenominator": 193.761, | ||
"aggregateTimeWindow": "PT0S", | ||
"nonZeroProbability": 68, | ||
"sumOfSquares": 2.424, | ||
"confidenceInterval": 0.015529361, | ||
"averageReward": 0.01122449 | ||
} | ||
], | ||
"totalSummary": { | ||
"timeStamp": "2019-01-19T00:00:00Z", | ||
"ipsEstimatorNumerator": 22.2, | ||
"ipsEstimatorDenominator": 1906, | ||
"snipsEstimatorDenominator": 1993.761, | ||
"aggregateTimeWindow": "PT0S", | ||
"nonZeroProbability": 68, | ||
"sumOfSquares": 2.484, | ||
"confidenceInterval": 0.0015344538, | ||
"averageReward": 0.011647429 | ||
} | ||
} | ||
], | ||
"featureImportance": [ | ||
[ | ||
"f1", | ||
"f2" | ||
], | ||
[ | ||
"f3", | ||
"f4" | ||
] | ||
], | ||
"evaluationType": "Manual", | ||
"optimalPolicy": "Custom learning settings 1", | ||
"creationTime": "2019-01-20T00:00:00Z" | ||
}, | ||
"headers": {} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...iveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Evaluations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-11-19T00:00:00Z", | ||
"endTime": "2018-12-19T00:00:00Z", | ||
"status": "completed", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom learning settings 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5", | ||
"policySource": "Online", | ||
"totalSummary": { | ||
"timeStamp": "2018-12-19T00:00:00Z", | ||
"ipsEstimatorNumerator": 18, | ||
"ipsEstimatorDenominator": 36, | ||
"snipsEstimatorDenominator": 1, | ||
"aggregateTimeWindow": "PT0S", | ||
"nonZeroProbability": 1.1, | ||
"sumOfSquares": 12.28, | ||
"confidenceInterval": 0.100001775, | ||
"averageReward": 0.5 | ||
} | ||
} | ||
], | ||
"featureImportance": [], | ||
"evaluationType": "Manual", | ||
"optimalPolicy": "Custom learning settings 1", | ||
"creationTime": "2019-01-19T00:00:00Z" | ||
}, | ||
{ | ||
"id": "21d03972-9130-4be9-8c8b-8ac3ec9b9dd1", | ||
"name": "mySecondEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "pending", | ||
"policyResults": [], | ||
"featureImportance": [], | ||
"evaluationType": "Manual", | ||
"optimalPolicy": "", | ||
"creationTime": "2019-01-19T00:00:00Z" | ||
} | ||
], | ||
"headers": {} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...tiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Events_Activate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"eventId": "id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...nitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Events_Reward.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"reward": { | ||
"value": 1 | ||
}, | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"eventId": "id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...cognitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Log_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...veservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Log_GetProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"dateRange": { | ||
"from": "2019-01-18T16:00:00-08:00", | ||
"to": "2019-02-18T16:00:00-08:00" | ||
} | ||
}, | ||
"headers": {} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...iveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Log_Interactions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"body": "id", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...iveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Log_Observations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"body": "id", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../cognitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Model_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"signed": false, | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "", | ||
"headers": {} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...services/data-plane/Personalizer/preview/v1.1-preview.3/examples/Model_GetProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"creationTime": "2019-01-18T16:00:00-08:00", | ||
"lastModifiedTime": "2019-01-18T16:00:00-08:00" | ||
}, | ||
"headers": {} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...gnitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Model_Import.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"body": "id", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ognitiveservices/data-plane/Personalizer/preview/v1.1-preview.3/examples/Model_Reset.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ces/data-plane/Personalizer/preview/v1.1-preview.3/examples/MultiSlotEvents_Activate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"eventId": "id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...vices/data-plane/Personalizer/preview/v1.1-preview.3/examples/MultiSlotEvents_Reward.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"body": { | ||
"reward": [ | ||
{ | ||
"slotId": "Heroposition", | ||
"value": 0.5 | ||
}, | ||
{ | ||
"slotId": "SideBar", | ||
"value": 0.6 | ||
} | ||
] | ||
}, | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}", | ||
"eventId": "id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.