Examples with negative weights #23
-
|
When playing with the netflix example I decided I wanted to find movies that matched the genre string "action sci-fi thriller" with a positive weight while biasing results away from genre "romance" using a negative weight. To do this I defined another space using the same field. I had mixed results and noticed I often ended up with movies This whole exercise raised another question: What is the best way to perform positive bias with one input and negative bias with another on the same field? This seems like a real-world scenario for recommendation engines where users have both liked and disliked various items. Is there a better way than making a second space for the field? Taking this further, it seems sensible to input query strings as a list of tuples where each tuple comprises a value with a corresponding weight for that value e.g., [("Action", 4), ("Sci-fi Thriller", 8), ("Romance", -2) ]. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Great observation! About your suggestion on tuple input: I genuinely like it, we will have to see how it fits into our product more broadly. |
Beta Was this translation helpful? Give feedback.
Hey Hey! fixing turned out to be a little more complicated, but I can now say that we have got there to do it finally. Sorry for the long wait, should work as expected from version
5.4.1