predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Ferrel <>
Subject Re: Use whitelist or blacklist in query
Date Fri, 21 Apr 2017 21:32:58 GMT
ANDs and ORs can be mixed by how you formulate the query. Before the Universal Recommender
v0.6.0 (soon to be released) you could only have rules that cause inclusion, with 0.6.0 you
will be able to exclude things based on their properties.

BEWARE, onerous business rules often cause a decrease in lift from the recommender. I’ve
seen people get 0 lift because of too many business rule restrictions.

On Apr 21, 2017, at 5:27 AM, Lin Amy <> wrote:

Hello Pat,

Thank you for replying,
and I wonder if I can do such filter: "(has A1 in property 1) or (not have A2 in property
2)" as query?
It seems that this cannot be done in the version you mentioned, since the query is used as
"and" but not "or"?
Any advice?

Thank you so much!

Best regards,

Pat Ferrel < <>> 於 2017年4月17日
週一 下午10:10寫道:
Using properties of items there are new exclusion rules is in the next release of v0.6.0,
which will be released shortly after PIO v0.11.0 and Mahout v0.13.0, both are going release

“Bias" in The Universal Recommender v0.6.0:

0: exclude items with properties specified (must_not in ES parlance)
<0: include only items with properties specified (must in ES parlance)
>0: use the bias as a multiplier on all scores, >1 should be considered a “boost"
However item based whitelists will completely ruin the performance of a recommender. They
are implemented now when you set in inclusion field in the query of “id”: [“id1”,
“id2”< …] This is undocumented because it is a bad idea—read on.

I warn you that this will restrict recommendations so much that it will not be worth making
recommendations. You are telling the recommender to go through a bunch of work to create the
best recommendations then throw them all away and rank the few items you have whitelisted.
It may be that none of the whitelisted items are able to be recommended to begin with so you
may get no recs.

If you simply want to rank things on your whitelist, use popularity or something that will
be more likely to give you recommendations and even then, this will often lead to conversion
lift of 0 so be careful.

On Apr 15, 2017, at 6:25 PM, Lin Amy < <>>

Hello everyone,

I am using the universal recommender. And I wonder if the following situation can be realized
by the engine.

First, an item can be set with either whitelist or blacklist property (but not both), and
the elements in the lists is something like category.

The recommendation will only contain those items with  from whitelist if whitelist property
exists; on the other hand, if blacklist property presents, then those with property from blacklist
will never be in the query result.

Is this possible? 
Thank you all!

Best regards,

You received this message because you are subscribed to the Google Groups "actionml-user"
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to <>.
To view this discussion on the web visit
For more options, visit <>.

View raw message