hapiger
hapiger copied to clipboard
Returns empty recommendations array
I follow the quick start guide, and running hapiger with in-memory event store gives a WARN:
(node:19148) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Anyways, the server starts up, but after feeding it with the events of Bob and Alice, it never returns any recommendation:
curl -X POST 'http://localhost:3456/recommendations' -d '{
"namespace": "movies",
"person": "Alice",
"configuration": {
"actions" : {"view": 5, "buy": 10}
}
}'
returns:
{"recommendations":[],"neighbourhood":{"Alice":1},"confidence":0}
Could you check the events are actually being added. Then look at the dates. Also, I have not updated this in a while, so it might be silently failing somewhere.