actionml / template-scala-parallel-universal-recommendation

30 stars 21 forks source link

Inconsistent Popular Items #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

Using 0.3.0, I've noticed the popular items query isn't consistent. It seems to alternate between two result sets for me, each with different items.

$ curl -XPOST http://master/queries.json -d '{}'
{"itemScores":[{"item":"4444","score":0.0},{"item":"8080","score":0.0},{"item":"10076","score":0.0},{"item":"11682","score":0.0}]}

$ curl -XPOST http://master/queries.json -d '{}'
{"itemScores":[{"item":"2366","score":0.0},{"item":"232","score":0.0},{"item":"2498","score":0.0},{"item":"11430","score":0.0}]}

$ curl -XPOST http://master/queries.json -d '{}'
{"itemScores":[{"item":"4444","score":0.0},{"item":"8080","score":0.0},{"item":"10076","score":0.0},{"item":"11682","score":0.0}]}

$ curl -XPOST http://master/queries.json -d '{}'
{"itemScores":[{"item":"2366","score":0.0},{"item":"232","score":0.0},{"item":"2498","score":0.0},{"item":"11430","score":0.0}]}

Other queries that specify an item or user return the same results.

ghost commented 8 years ago

Odd. After retraining, the issue has gone away.

ghost commented 8 years ago

I think the issue was just that I changed the popularity model in the configuration file but had not yet retrained the data.