Skip to content

Commit 689b91f

Browse files
author
AWS
committed
Amazon Personalize Runtime Update: Amazon Personalize: Add new response field "score" to each item returned by GetRecommendations and GetPersonalizedRanking (HRNN-based recipes only)
1 parent c283043 commit 689b91f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Personalize Runtime",
4+
"description": "Amazon Personalize: Add new response field \"score\" to each item returned by GetRecommendations and GetPersonalizedRanking (HRNN-based recipes only)"
5+
}

services/personalizeruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
},
8989
"context":{
9090
"shape":"Context",
91-
"documentation":"<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type. For more information, see Contextual Metadata.</p>"
91+
"documentation":"<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.</p>"
9292
}
9393
}
9494
},
@@ -123,7 +123,7 @@
123123
},
124124
"context":{
125125
"shape":"Context",
126-
"documentation":"<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type. For more information, see Contextual Metadata.</p>"
126+
"documentation":"<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.</p>"
127127
}
128128
}
129129
},
@@ -167,6 +167,10 @@
167167
"itemId":{
168168
"shape":"ItemID",
169169
"documentation":"<p>The recommended item ID.</p>"
170+
},
171+
"score":{
172+
"shape":"Score",
173+
"documentation":"<p>A numeric representation of the model's certainty in the item's suitability. For more information on scoring logic, see <a>how-scores-work</a>.</p>"
170174
}
171175
},
172176
"documentation":"<p>An object that identifies an item.</p> <p>The and APIs return a list of <code>PredictedItem</code>s.</p>"
@@ -180,6 +184,7 @@
180184
"error":{"httpStatusCode":404},
181185
"exception":true
182186
},
187+
"Score":{"type":"double"},
183188
"UserID":{
184189
"type":"string",
185190
"max":256

0 commit comments

Comments
 (0)