Skip to content

Commit fce14f3

Browse files
authored
Added ModelRetrainDays field to ServiceConfiguration get and update (#20415)
1 parent 5227865 commit fce14f3

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

specification/cognitiveservices/data-plane/Personalizer/preview/2022-09-01-preview/Personalizer.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"/configurations/service": {
1414
"get": {
1515
"tags": [
16-
"ConfigurationsV1Dot1Preview1"
16+
"Configurations20220901Preview"
1717
],
1818
"summary": "Get Service Configuration.",
1919
"description": "Get the Personalizer service configuration.",
@@ -59,7 +59,7 @@
5959
},
6060
"put": {
6161
"tags": [
62-
"ConfigurationsV1Dot1Preview1"
62+
"Configurations20220901Preview"
6363
],
6464
"summary": "Update Service Configuration.",
6565
"description": "Update the Personalizer service configuration.",
@@ -118,7 +118,7 @@
118118
"/configurations/policy": {
119119
"get": {
120120
"tags": [
121-
"ConfigurationsV1Dot1Preview1"
121+
"Configurations20220901Preview"
122122
],
123123
"summary": "Get Policy.",
124124
"description": "Get the Learning Settings currently used by the Personalizer service.",
@@ -164,7 +164,7 @@
164164
},
165165
"put": {
166166
"tags": [
167-
"ConfigurationsV1Dot1Preview1"
167+
"Configurations20220901Preview"
168168
],
169169
"summary": "Update Policy.",
170170
"description": "Update the Learning Settings that the Personalizer service will use to train models.",
@@ -221,7 +221,7 @@
221221
},
222222
"delete": {
223223
"tags": [
224-
"ConfigurationsV1Dot1Preview1"
224+
"Configurations20220901Preview"
225225
],
226226
"summary": "Reset Policy.",
227227
"description": "Resets the learning settings of the Personalizer service to default.",
@@ -665,7 +665,7 @@
665665
"/configurations/applyFromEvaluation": {
666666
"post": {
667667
"tags": [
668-
"ConfigurationsV1Dot1Preview1"
668+
"Configurations20220901Preview"
669669
],
670670
"summary": "Apply Learning Settings and model from a pre-existing Offline Evaluation, making them the current online Learning Settings and model and replacing the previous ones.",
671671
"operationId": "ServiceConfiguration_ApplyFromEvaluation",
@@ -2218,6 +2218,7 @@
22182218
"InvalidModelImportFormat",
22192219
"FeatureImportanceAlreadyExists",
22202220
"EvaluationAlreadyExists",
2221+
"InvalidModelRetrainDays",
22212222
"InvalidApiAccess",
22222223
"ModelFileAccessDenied",
22232224
"ProblemTypeIncompatibleWithAutoOptimization",
@@ -2354,6 +2355,10 @@
23542355
"value": "EvaluationAlreadyExists",
23552356
"description": "Evaluation with id {0} already exists."
23562357
},
2358+
{
2359+
"value": "InvalidModelRetrainDays",
2360+
"description": "Model retrain days must be between 0 and the number of log retention days."
2361+
},
23572362
{
23582363
"value": "InvalidApiAccess",
23592364
"description": "Api is currently disabled for the instance."
@@ -2676,6 +2681,7 @@
26762681
"explorationPercentage",
26772682
"logRetentionDays",
26782683
"modelExportFrequency",
2684+
"modelRetrainDays",
26792685
"rewardAggregation",
26802686
"rewardWaitTime"
26812687
],
@@ -2756,6 +2762,14 @@
27562762
"format": "date-time",
27572763
"description": "Date when the first automatic optimization evaluation must be performed. Only relevant if IsAutoOptimizationEnabled is true.",
27582764
"type": "string"
2765+
},
2766+
"modelRetrainDays": {
2767+
"format": "int32",
2768+
"description": "Number of days of historical logs used when a model retrain is triggered.",
2769+
"default": 0,
2770+
"maximum": 2147483647,
2771+
"minimum": 0,
2772+
"type": "integer"
27592773
}
27602774
}
27612775
},
@@ -2916,7 +2930,7 @@
29162930
],
29172931
"tags": [
29182932
{
2919-
"name": "ConfigurationsV1Dot1Preview1",
2933+
"name": "Configurations20220901Preview",
29202934
"description": "Manages configuration operations."
29212935
},
29222936
{

specification/cognitiveservices/data-plane/Personalizer/preview/2022-09-01-preview/examples/ServiceConfiguration_Get.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"learningMode": "Online",
2121
"isAutoOptimizationEnabled": true,
2222
"autoOptimizationFrequency": "P7D",
23-
"autoOptimizationStartDate": "2019-01-19T00:00:00Z"
23+
"autoOptimizationStartDate": "2019-01-19T00:00:00Z",
24+
"modelRetrainDays": 0
2425
}
2526
}
2627
}

specification/cognitiveservices/data-plane/Personalizer/preview/2022-09-01-preview/examples/ServiceConfiguration_Update.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"learningMode": "Online",
1515
"isAutoOptimizationEnabled": true,
1616
"autoOptimizationFrequency": "P7D",
17-
"autoOptimizationStartDate": "2019-01-19T00:00:00Z"
17+
"autoOptimizationStartDate": "2019-01-19T00:00:00Z",
18+
"modelRetrainDays": 0
1819
},
1920
"Ocp-Apim-Subscription-Key": "{API key}"
2021
},
@@ -34,7 +35,8 @@
3435
"learningMode": "Online",
3536
"isAutoOptimizationEnabled": true,
3637
"autoOptimizationFrequency": "P7D",
37-
"autoOptimizationStartDate": "2019-01-19T00:00:00Z"
38+
"autoOptimizationStartDate": "2019-01-19T00:00:00Z",
39+
"modelRetrainDays": 0
3840
}
3941
}
4042
}

0 commit comments

Comments
 (0)