Yes it can be done but support is not ideal so UR v0.6.0 coming just after the 
release of PIO-0.11.0 (in RC now) has some enhancements that give you better 
options and easier queries.

To get truly complimentary purchases you need to train on shopping carts, not 
users purchases. So the primary input would of the form:

(shopping-cart-id, cart-purchase, product-id)

Then in < 0.6.0 you query with the currently active shopping cart id as if it 
is the user-id

{
    “user”: “some-shopping-cart-id”
}

In v0.6.0 you still need to train on shopping carts to get true “complimentary 
purchase” but the query may be easier:

{
    “Item-set”: [“product1”, “product2”]
}

The query is the current contents of the shopping cart, no fake “user-id” 
required. 

UR 0.6.0 will also allow you to query against a model trained on user purchases 
with the same query but, though the results will be "things purchased by people 
with similar purchasing behavior as you query item-set", it won’t be strictly 
“complimentary purchases”. 

Since 2 methods are supported with UR 0.6.0 you could A/B test for which has 
the best results. If using user purchase (instead of shopping carts) is close 
to as good it would be much easier since you can have user-based, item-based 
and shopping carts recs from the same model. Otherwise one for user-based and 
item-based and another for “complimentary purchases” would make 2 trains and 2 
models.



On Apr 5, 2017, at 8:08 PM, Vaghawan Ojha <[email protected]> wrote:

Hi Pat, 

As far as the actionml docs tells me that I could be able to use the UR to 
recommend the cart/complementary purchase, but there seems to be no 
documentation regarding this. 

It would be helpful if there was a documentation for this feature. I know 
people have worked out and implemented the cart recommendation, but for 
begineer like me, it would still be like "what to do now". 

So could you help me how can I do that? If documentation is not ready yet for 
this, I could write one for this feature once I got what to do. 

Thanks
Vaghawan

-- 
You received this message because you are subscribed to the Google Groups 
"actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]>.
To post to this group, send email to [email protected] 
<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/actionml-user/CA%2B69RXYDeMRXOG25v%3Dadr%3DSXLk6BO811DSCYX0t6vp8EVPP1Xw%40mail.gmail.com
 
<https://groups.google.com/d/msgid/actionml-user/CA%2B69RXYDeMRXOG25v%3Dadr%3DSXLk6BO811DSCYX0t6vp8EVPP1Xw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout 
<https://groups.google.com/d/optout>.

Reply via email to