commit | 892b0a0911169696ee1f03a5f160974917e2b1f9 | [log] [tgz] |
---|---|---|
author | Kenneth Chan <kenneth@prediction.io> | Mon Feb 16 16:54:44 2015 -0800 |
committer | Kenneth Chan <kenneth@prediction.io> | Mon Feb 16 16:54:44 2015 -0800 |
tree | 78b6f42ea6514a51923fb2c70cf385731d7a60a2 | |
parent | 11d46e531d079be72c93dc5e9fe7bbbe793e7d4e [diff] |
Initial version
Please refer to http://docs.prediction.io/templates/ecommercerecommendation/quickstart/
$ python data/import_eventserver.py --access_key <your_access_key>
normal:
curl -H "Content-Type: application/json" \ -d '{ "user" : "u1", "num" : 10 }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
curl -H "Content-Type: application/json" \ -d '{ "user" : "u1", "num": 10, "categories" : ["c4", "c3"] }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
curl -H "Content-Type: application/json" \ -d '{ "user" : "u1", "num": 10, "whiteList": ["i21", "i26", "i40"] }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
curl -H "Content-Type: application/json" \ -d '{ "user" : "u1", "num": 10, "blackList": ["i21", "i26", "i40"] }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
unknown user:
curl -H "Content-Type: application/json" \ -d '{ "user" : "unk1", "num": 10}' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}