You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by "Guruju, Lakshmi Sravya" <la...@sap.com> on 2016/11/14 11:31:34 UTC
Get properties of each recommendation
Hello Everyone,
I am using universal recommender. For now, I have only one primary event called 'view' and it looks as below.
{
"eventId": "lonc70LJNlifYaqUW3nu-wAAAVhh-IjYtz5zqCCE3B4",
"event": "view",
"entityType": "user",
"entityId": "<userId>",
"targetEntityType": "item",
"targetEntityId": "<itemId>",
"properties": {
"repositoryId": "<repositoryId>"
},
"eventTime": "2016-11-14T08:33:47.736Z",
"creationTime": "2016-11-14T08:33:47.736Z"
}
The recommendations contains only item id and score. The property 'repositoryId' is not part of the recommendation. Could someone please suggest me how do I get this?
Regards,
Sravya
Re: Get properties of each recommendation
Posted by Pat Ferrel <pa...@occamsmachete.com>.
Properties are not returned with recommendations, only the item id and score. Also only array’s of strings are supported (categorical properties) and anyway below you are setting a user property. Item properties are set using $set, $unset events. See UR docs here: http://actionml.com/docs/install <http://actionml.com/docs/install> to install aml PIO, the lastest UR is not released for Apache-PIO yet, working on that today. UR docs are here: http://actionml.com/docs/ur_input <http://actionml.com/docs/ur_input> see "property change events"
On Nov 14, 2016, at 3:31 AM, Guruju, Lakshmi Sravya <la...@sap.com> wrote:
Hello Everyone,
I am using universal recommender. For now, I have only one primary event called ‘view’ and it looks as below.
{
"eventId": "lonc70LJNlifYaqUW3nu-wAAAVhh-IjYtz5zqCCE3B4",
"event": "view",
"entityType": "user",
"entityId": "<userId>",
"targetEntityType": "item",
"targetEntityId": "<itemId>",
"properties": {
"repositoryId": "<repositoryId>"
},
"eventTime": "2016-11-14T08:33:47.736Z",
"creationTime": "2016-11-14T08:33:47.736Z"
}
The recommendations contains only item id and score. The property ‘repositoryId’ is not part of the recommendation. Could someone please suggest me how do I get this?
Regards,
Sravya