tag | 640ec5dd7578a09406a746ee1c6153b3528ce129 | |
---|---|---|
tagger | Kenneth Chan <kenneth@prediction.io> | Fri Feb 06 16:26:44 2015 -0800 |
object | e822e3a0c948907319cde33fe6d2ed9b77899f5a |
v0.1.1 release
commit | e822e3a0c948907319cde33fe6d2ed9b77899f5a | [log] [tgz] |
---|---|---|
author | Kenneth Chan <kenneth@prediction.io> | Fri Feb 06 16:26:25 2015 -0800 |
committer | Kenneth Chan <kenneth@prediction.io> | Fri Feb 06 16:26:25 2015 -0800 |
tree | ee5ecbc571cea3af0af1f11482bc4973d7494fe5 | |
parent | d654d59133265304e61b7a52816a7a287edf8ba2 [diff] | |
parent | ed67162b1e8946a564e8544b63ae34dfaddd6308 [diff] |
Merge branch 'develop' for v0.1.1
Please refer to http://docs.prediction.io/templates/similarproduct/quickstart/
$ python data/import_eventserver.py --access_key <your_access_key>
normal:
curl -H "Content-Type: application/json" \ -d '{ "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"], "num": 10}' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
curl -H "Content-Type: application/json" \ -d '{ "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"], "num": 10, "categories" : ["c4", "c3"] }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
curl -H "Content-Type: application/json" \ -d '{ "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"], "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 '{ "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"], "num": 10, "blackList": ["i21", "i26", "i40"] }' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
unknown item:
curl -H "Content-Type: application/json" \ -d '{ "items": ["unk1", "i3", "i10", "i2", "i5", "i31", "i9"], "num": 10}' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}
all unknown items:
curl -H "Content-Type: application/json" \ -d '{ "items": ["unk1", "unk2", "unk3", "unk4"], "num": 10}' \ http://localhost:8000/queries.json \ -w %{time_connect}:%{time_starttransfer}:%{time_total}