commit | 8f6e101cfe642ada8075b1e9b62f52b913efde67 | [log] [tgz] |
---|---|---|
author | Naoki Takezoe <takezoe@apache.org> | Tue Mar 12 22:36:21 2019 +0900 |
committer | Naoki Takezoe <takezoe@apache.org> | Tue Mar 12 22:36:21 2019 +0900 |
tree | cc3c6d0c5fd56a95a3a993a9eb9f6a6d370b810e | |
parent | b83fc2f8d135bb784c2c2292fd7a0d8e33ddd6a7 [diff] | |
parent | b4681abf7cbacc0cf3d07811c6357de6239d0530 [diff] |
Merge branch 'develop'
Please refer to https://predictionio.apache.org/templates/similarproduct/quickstart/
Update for Apache PredictionIO 0.14.0
Update for Apache PredictionIO 0.13.0
Update for Apache PredictionIO 0.10.0-incubating
engine.json
by engine-cooccurrence.json
, or specify --variant engine-cooccurrence.json
parameter for both $pio train
and $pio deploy
update for PredictionIO 0.9.2, including:
$ 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}