blacklistIndicators doens't work

29 views
Skip to first unread message

Jerard

unread,
Mar 29, 2023, 10:35:36 AM3/29/23
to actionml-user
Hello,

I'm facing a problem with excluding items from recommendations by default.

Please see the engine config:

{
  "engineId": "my_engine",
  "engineFactory": "com.actionml.engines.ur.UREngine",
  "dataset": {
    "ttl": "3652 days"
  },
  "sparkConf": {
    "es.index.auto.create": "true",
    "es.nodes": "elasticsearch",
    "es.nodes.wan.only": "true",
    "master": "local",
    "spark.driver.memory": "10g",
    "spark.es.index.auto.create": "true",
    "spark.es.nodes": "elasticsearch",
    "spark.es.nodes.wan.only": "true",
    "spark.executor.memory": "20g",
    "spark.kryo.referenceTracking": "false",
    "spark.kryo.registrator": "org.apache.mahout.sparkbindings.io.MahoutKryoRegistrator",
    "spark.kryoserializer.buffer": "500m",
    "spark.serializer": "org.apache.spark.serializer.KryoSerializer"
  },
  "algorithm": {
    "returnSelf": "false",
    "blacklistIndicators": ["like", "watch", "dislike"],
    "indicators": [
      { "name": "like" },
      { "name": "wish" },
      { "name": "watch" },
      { "name": "dislike" }
    ]
  }
}

Items that do have any blacklistIndicators event (like,watch,dislike) keeps getting back.

So far I've tried to remove "blacklistIndicators" from the config and recreate engine, but it didn't help. Items with primary "like" are still in response.

Also, it works fine when I'm sending all the unwanted items in blacklistItems during query. 

Is blacklistIndicators still supported? How to make it work by default?

Thanks!

Pat Ferrel

unread,
Mar 30, 2023, 10:43:17 PM3/30/23
to Jerard, actionml-user
Do not use “blacklistIndicators”. Where did you see instructions to use that? It is used only for cross-validation tests. And BTW it does work, but is not for general use.

If you are trying to exclude certain items from a single recs result set used the query modifier; "blacklistItems": ["itemId1", "itemId2", …] as seen here: https://actionml.com/docs/h_ur_queries#query-parameter-specification

It is sometimes helpful to exclude items being shown on a page already so you don’t end up repeating items on a single page.
 
--
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 actionml-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/actionml-user/f43fd7ac-a1b8-491e-9236-10b64d2306b0n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages