You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Pat Ferrel <pa...@occamsmachete.com> on 2018/07/01 20:52:34 UTC

Re: [actionml/universal-recommender] Use properties for recommendation other than categorial? (#54)

This is setting properties for items, which MUST be arrays of strings in
the Universal Recommender. The array may contain only one string, so you
need to change that part. See docs on actionml.com


From: Amit Assaraf <no...@github.com> <no...@github.com>
Reply: actionml/universal-recommender
<re...@reply.github.com>
<re...@reply.github.com>
Date: July 1, 2018 at 12:54:34 PM
To: actionml/universal-recommender
<un...@noreply.github.com>
<un...@noreply.github.com>
Cc: Subscribed <su...@noreply.github.com>
<su...@noreply.github.com>
Subject:  [actionml/universal-recommender] Use properties for
recommendation other than categorial? (#54)

I'd like to add a property to my item like so:

{
    "event" : "$set",
    "entityType" : "item",
    "entityId" : "some-item-id",
    "properties" : {
        "city": "New York",
        "size_in_sqf": 35
    },
    "eventTime" : "2015-10-05T21:02:49.228Z"
}

then lets say the user has viewed several items and reported a view event.

Now I want the recommender to recommend me items that are similar to the
one's the user viewed by taking into account the properties city &
size_in_sqf.

That means it should show me items that are in New York and the size_in_sqf
is around 35.
How do I do this? I can't find any tutorial other than the official one on
using UR and I really want to accomplish something similar to this.

thanks!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/actionml/universal-recommender/issues/54>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAT8S0yXei-ZdXyE6HmDaDsA8PqDqL1Yks5uCSj6gaJpZM4U-cmb>
.