hapiger icon indicating copy to clipboard operation
hapiger copied to clipboard

Returns empty recommendations array

Open memmm opened this issue 7 years ago • 1 comments

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}

memmm avatar Sep 11 '18 15:09 memmm

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.

grahamjenson avatar Sep 11 '18 15:09 grahamjenson