Documentation based on apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/commit/a8b9a7b1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/tree/a8b9a7b1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/diff/a8b9a7b1 Branch: refs/heads/asf-site Commit: a8b9a7b1a0f7c0ffb86d3b3545aef03a866b5360 Parents: 1ebfd31 Author: jenkins <[email protected]> Authored: Thu Oct 19 02:26:20 2017 +0000 Committer: jenkins <[email protected]> Committed: Thu Oct 19 02:26:20 2017 +0000 ---------------------------------------------------------------------- 404/index.html.gz | Bin 4636 -> 4636 bytes algorithm/custom/index.html.gz | Bin 4583 -> 4583 bytes algorithm/index.html.gz | Bin 4732 -> 4732 bytes algorithm/multiple/index.html.gz | Bin 4684 -> 4684 bytes algorithm/switch/index.html.gz | Bin 4701 -> 4701 bytes appintegration/index.html.gz | Bin 5162 -> 5162 bytes batchpredict/index.html.gz | Bin 6658 -> 6658 bytes cli/index.html.gz | Bin 5357 -> 5357 bytes community/contribute-code/index.html.gz | Bin 7792 -> 7792 bytes .../contribute-documentation/index.html.gz | Bin 7534 -> 7534 bytes community/contribute-sdk/index.html.gz | Bin 6781 -> 6781 bytes community/contribute-webhook/index.html.gz | Bin 7912 -> 7912 bytes community/index.html.gz | Bin 5021 -> 5021 bytes community/projects/index.html.gz | Bin 5708 -> 5708 bytes community/submit-template/index.html.gz | Bin 5799 -> 5799 bytes customize/dase/index.html.gz | Bin 8545 -> 8545 bytes customize/index.html.gz | Bin 5858 -> 5858 bytes customize/troubleshooting/index.html.gz | Bin 7634 -> 7634 bytes datacollection/analytics-ipynb/index.html.gz | Bin 6964 -> 6964 bytes datacollection/analytics-tableau/index.html.gz | Bin 7316 -> 7316 bytes datacollection/analytics-zeppelin/index.html.gz | Bin 6212 -> 6212 bytes datacollection/analytics/index.html.gz | Bin 4742 -> 4742 bytes datacollection/batchimport/index.html | 4 +- datacollection/batchimport/index.html.gz | Bin 6596 -> 6595 bytes datacollection/channel/index.html | 6 +- datacollection/channel/index.html.gz | Bin 7536 -> 7538 bytes datacollection/eventapi/index.html | 20 +- datacollection/eventapi/index.html.gz | Bin 10623 -> 10621 bytes datacollection/eventmodel/index.html.gz | Bin 9857 -> 9857 bytes datacollection/index.html.gz | Bin 5305 -> 5305 bytes datacollection/plugin/index.html.gz | Bin 6474 -> 6474 bytes datacollection/webhooks/index.html.gz | Bin 4752 -> 4752 bytes demo/community/index.html.gz | Bin 5243 -> 5243 bytes demo/index.html.gz | Bin 4690 -> 4690 bytes demo/supervisedlearning/index.html.gz | Bin 6874 -> 6874 bytes demo/tapster/index.html.gz | Bin 10932 -> 10932 bytes demo/textclassification/index.html.gz | Bin 19828 -> 19828 bytes deploy/engineparams/index.html.gz | Bin 4580 -> 4580 bytes deploy/enginevariants/index.html.gz | Bin 4583 -> 4583 bytes deploy/index.html.gz | Bin 6554 -> 6554 bytes deploy/monitoring/index.html.gz | Bin 7246 -> 7246 bytes deploy/plugin/index.html.gz | Bin 6516 -> 6516 bytes evaluation/evaluationdashboard/index.html.gz | Bin 5173 -> 5173 bytes evaluation/history/index.html.gz | Bin 4501 -> 4501 bytes evaluation/index.html.gz | Bin 5261 -> 5261 bytes evaluation/metricbuild/index.html.gz | Bin 7248 -> 7248 bytes evaluation/metricchoose/index.html.gz | Bin 6089 -> 6089 bytes evaluation/paramtuning/index.html.gz | Bin 10621 -> 10621 bytes gallery/template-gallery/index.html | 2 +- gallery/template-gallery/index.html.gz | Bin 11955 -> 11956 bytes github/index.html.gz | Bin 3094 -> 3094 bytes index.html.gz | Bin 5689 -> 5689 bytes install/config-datastore/index.html.gz | Bin 5019 -> 5019 bytes install/index.html | 2 +- install/index.html.gz | Bin 5387 -> 5378 bytes install/install-linux/index.html.gz | Bin 7634 -> 7634 bytes install/install-sourcecode/index.html.gz | Bin 8195 -> 8195 bytes install/install-vagrant/index.html.gz | Bin 6533 -> 6533 bytes install/launch-aws/index.html.gz | Bin 5650 -> 5650 bytes install/sdk/index.html.gz | Bin 4496 -> 4496 bytes javascripts/application-a6acb1f5.js.gz | Bin 36970 -> 36970 bytes javascripts/tryit-e18ad27c.js.gz | Bin 322 -> 322 bytes .../dimensionalityreduction/index.html.gz | Bin 17234 -> 17234 bytes machinelearning/modelingworkflow/index.html.gz | Bin 5433 -> 5433 bytes production/deploy-cloudformation/index.html.gz | Bin 4555 -> 4555 bytes resources/faq/index.html.gz | Bin 9663 -> 9663 bytes resources/glossary/index.html.gz | Bin 5260 -> 5260 bytes resources/intellij/index.html.gz | Bin 8192 -> 8192 bytes resources/release/index.html.gz | Bin 5081 -> 5081 bytes resources/upgrade/index.html.gz | Bin 10232 -> 10232 bytes samples/index.html.gz | Bin 5903 -> 5903 bytes samples/languages/index.html.gz | Bin 6226 -> 6226 bytes samples/level-1/index.html.gz | Bin 4565 -> 4565 bytes samples/level-2-1/index.html.gz | Bin 4573 -> 4573 bytes samples/level-2-2/index.html.gz | Bin 4572 -> 4572 bytes samples/level-2/index.html.gz | Bin 4566 -> 4566 bytes samples/level-3-1/index.html.gz | Bin 4573 -> 4573 bytes samples/level-3-2/index.html.gz | Bin 4573 -> 4573 bytes samples/level-3/index.html.gz | Bin 4567 -> 4567 bytes samples/level-4-1/index.html.gz | Bin 4573 -> 4573 bytes samples/level-4-2/index.html.gz | Bin 4572 -> 4572 bytes samples/level-4-3/index.html.gz | Bin 4573 -> 4573 bytes samples/level-4/index.html.gz | Bin 4568 -> 4568 bytes samples/narrow/index.html.gz | Bin 4514 -> 4514 bytes samples/sizing/index.html.gz | Bin 4855 -> 4855 bytes samples/tabs/index.html | 18 +- samples/tabs/index.html.gz | Bin 5733 -> 5734 bytes sdk/community/index.html.gz | Bin 5298 -> 5298 bytes sdk/index.html.gz | Bin 4744 -> 4744 bytes sdk/java/index.html.gz | Bin 4965 -> 4965 bytes sdk/php/index.html.gz | Bin 4944 -> 4944 bytes sdk/python/index.html.gz | Bin 4947 -> 4947 bytes sdk/ruby/index.html.gz | Bin 4942 -> 4942 bytes search/index.html.gz | Bin 4512 -> 4512 bytes sitemap.xml | 260 +++++++++---------- start/customize/index.html.gz | Bin 5014 -> 5014 bytes start/deploy/index.html.gz | Bin 4901 -> 4901 bytes start/download/index.html.gz | Bin 4822 -> 4822 bytes start/index.html.gz | Bin 5646 -> 5646 bytes stylesheets/application-eccfc6cb.css.gz | Bin 24889 -> 24889 bytes support/index.html.gz | Bin 5131 -> 5131 bytes system/anotherdatastore/index.html.gz | Bin 8345 -> 8345 bytes system/deploy-cloudformation/index.html.gz | Bin 9278 -> 9278 bytes system/index.html.gz | Bin 5432 -> 5432 bytes .../classification/add-algorithm/index.html.gz | Bin 7178 -> 7178 bytes templates/classification/dase/index.html.gz | Bin 8772 -> 8772 bytes templates/classification/how-to/index.html.gz | Bin 4638 -> 4638 bytes templates/classification/quickstart/index.html | 30 +-- .../classification/quickstart/index.html.gz | Bin 13460 -> 13456 bytes .../reading-custom-properties/index.html.gz | Bin 6034 -> 6034 bytes .../complementarypurchase/dase/index.html.gz | Bin 10710 -> 10710 bytes .../complementarypurchase/quickstart/index.html | 20 +- .../quickstart/index.html.gz | Bin 12638 -> 12641 bytes .../adjust-score/index.html.gz | Bin 7181 -> 7181 bytes .../ecommercerecommendation/dase/index.html.gz | Bin 14735 -> 14735 bytes .../how-to/index.html.gz | Bin 4645 -> 4645 bytes .../quickstart/index.html | 60 ++--- .../quickstart/index.html.gz | Bin 15822 -> 15820 bytes .../train-with-rate-event/index.html.gz | Bin 7474 -> 7474 bytes templates/index.html.gz | Bin 4748 -> 4748 bytes .../dase/index.html.gz | Bin 11835 -> 11835 bytes .../quickstart/index.html | 60 ++--- .../quickstart/index.html.gz | Bin 15745 -> 15734 bytes templates/leadscoring/dase/index.html.gz | Bin 11582 -> 11582 bytes templates/leadscoring/quickstart/index.html | 30 +-- templates/leadscoring/quickstart/index.html.gz | Bin 13015 -> 13018 bytes templates/productranking/dase/index.html.gz | Bin 12790 -> 12790 bytes templates/productranking/quickstart/index.html | 40 +-- .../productranking/quickstart/index.html.gz | Bin 12986 -> 12981 bytes .../batch-evaluator/index.html.gz | Bin 8017 -> 8017 bytes .../blacklist-items/index.html.gz | Bin 7312 -> 7312 bytes .../customize-data-prep/index.html.gz | Bin 7266 -> 7266 bytes .../customize-serving/index.html.gz | Bin 7529 -> 7529 bytes templates/recommendation/dase/index.html.gz | Bin 10855 -> 10855 bytes .../recommendation/evaluation/index.html.gz | Bin 10699 -> 10699 bytes templates/recommendation/how-to/index.html.gz | Bin 4677 -> 4677 bytes templates/recommendation/quickstart/index.html | 30 +-- .../recommendation/quickstart/index.html.gz | Bin 12762 -> 12768 bytes .../reading-custom-events/index.html.gz | Bin 6023 -> 6023 bytes .../index.html.gz | Bin 6938 -> 6938 bytes templates/similarproduct/dase/index.html.gz | Bin 13139 -> 13139 bytes templates/similarproduct/how-to/index.html.gz | Bin 4670 -> 4670 bytes .../multi-events-multi-algos/index.html.gz | Bin 11789 -> 11789 bytes templates/similarproduct/quickstart/index.html | 40 +-- .../similarproduct/quickstart/index.html.gz | Bin 14369 -> 14370 bytes .../recommended-user/index.html.gz | Bin 7057 -> 7057 bytes .../return-item-properties/index.html.gz | Bin 6742 -> 6742 bytes .../rid-user-set-event/index.html.gz | Bin 6333 -> 6333 bytes .../train-with-rate-event/index.html.gz | Bin 7367 -> 7367 bytes templates/vanilla/dase/index.html.gz | Bin 6789 -> 6789 bytes templates/vanilla/quickstart/index.html | 10 +- templates/vanilla/quickstart/index.html.gz | Bin 9423 -> 9423 bytes tryit/index.html.gz | Bin 3126 -> 3126 bytes 153 files changed, 316 insertions(+), 316 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/404/index.html.gz ---------------------------------------------------------------------- diff --git a/404/index.html.gz b/404/index.html.gz index 3a32bd4..353c564 100644 Binary files a/404/index.html.gz and b/404/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/algorithm/custom/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/custom/index.html.gz b/algorithm/custom/index.html.gz index 56eeb23..7764f01 100644 Binary files a/algorithm/custom/index.html.gz and b/algorithm/custom/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/algorithm/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/index.html.gz b/algorithm/index.html.gz index 6640362..d2c45c5 100644 Binary files a/algorithm/index.html.gz and b/algorithm/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/algorithm/multiple/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/multiple/index.html.gz b/algorithm/multiple/index.html.gz index 285313a..69faaab 100644 Binary files a/algorithm/multiple/index.html.gz and b/algorithm/multiple/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/algorithm/switch/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/switch/index.html.gz b/algorithm/switch/index.html.gz index 42b21b6..8032a19 100644 Binary files a/algorithm/switch/index.html.gz and b/algorithm/switch/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/appintegration/index.html.gz ---------------------------------------------------------------------- diff --git a/appintegration/index.html.gz b/appintegration/index.html.gz index 715f2b7..5255861 100644 Binary files a/appintegration/index.html.gz and b/appintegration/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/batchpredict/index.html.gz ---------------------------------------------------------------------- diff --git a/batchpredict/index.html.gz b/batchpredict/index.html.gz index 4c2e42c..90582cc 100644 Binary files a/batchpredict/index.html.gz and b/batchpredict/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/cli/index.html.gz ---------------------------------------------------------------------- diff --git a/cli/index.html.gz b/cli/index.html.gz index d3970a0..1f37465 100644 Binary files a/cli/index.html.gz and b/cli/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/contribute-code/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-code/index.html.gz b/community/contribute-code/index.html.gz index 722bc4c..ec94cdc 100644 Binary files a/community/contribute-code/index.html.gz and b/community/contribute-code/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/contribute-documentation/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-documentation/index.html.gz b/community/contribute-documentation/index.html.gz index ad14663..433a528 100644 Binary files a/community/contribute-documentation/index.html.gz and b/community/contribute-documentation/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/contribute-sdk/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-sdk/index.html.gz b/community/contribute-sdk/index.html.gz index 8dd469e..a66706c 100644 Binary files a/community/contribute-sdk/index.html.gz and b/community/contribute-sdk/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/contribute-webhook/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-webhook/index.html.gz b/community/contribute-webhook/index.html.gz index d219254..ff149cb 100644 Binary files a/community/contribute-webhook/index.html.gz and b/community/contribute-webhook/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/index.html.gz ---------------------------------------------------------------------- diff --git a/community/index.html.gz b/community/index.html.gz index 42cd3bb..a8d1526 100644 Binary files a/community/index.html.gz and b/community/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/projects/index.html.gz ---------------------------------------------------------------------- diff --git a/community/projects/index.html.gz b/community/projects/index.html.gz index 71436e3..a548198 100644 Binary files a/community/projects/index.html.gz and b/community/projects/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/community/submit-template/index.html.gz ---------------------------------------------------------------------- diff --git a/community/submit-template/index.html.gz b/community/submit-template/index.html.gz index 2190766..d78f126 100644 Binary files a/community/submit-template/index.html.gz and b/community/submit-template/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/customize/dase/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/dase/index.html.gz b/customize/dase/index.html.gz index 1bc7a69..98cbc36 100644 Binary files a/customize/dase/index.html.gz and b/customize/dase/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/customize/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/index.html.gz b/customize/index.html.gz index 96adafb..996835a 100644 Binary files a/customize/index.html.gz and b/customize/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/customize/troubleshooting/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/troubleshooting/index.html.gz b/customize/troubleshooting/index.html.gz index fa4707a..cd32ff2 100644 Binary files a/customize/troubleshooting/index.html.gz and b/customize/troubleshooting/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/analytics-ipynb/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-ipynb/index.html.gz b/datacollection/analytics-ipynb/index.html.gz index ba31a73..e299301 100644 Binary files a/datacollection/analytics-ipynb/index.html.gz and b/datacollection/analytics-ipynb/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/analytics-tableau/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-tableau/index.html.gz b/datacollection/analytics-tableau/index.html.gz index b7796ac..0a9edb8 100644 Binary files a/datacollection/analytics-tableau/index.html.gz and b/datacollection/analytics-tableau/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/analytics-zeppelin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-zeppelin/index.html.gz b/datacollection/analytics-zeppelin/index.html.gz index fcedf73..cae6219 100644 Binary files a/datacollection/analytics-zeppelin/index.html.gz and b/datacollection/analytics-zeppelin/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/analytics/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics/index.html.gz b/datacollection/analytics/index.html.gz index d816c97..e1f1cb6 100644 Binary files a/datacollection/analytics/index.html.gz and b/datacollection/analytics/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/batchimport/index.html ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html index b473b2c..fb80a85 100644 --- a/datacollection/batchimport/index.html +++ b/datacollection/batchimport/index.html @@ -7,7 +7,7 @@ </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"rate"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"2"</span><span class="p">,</span><span class="s2">"properties"</span><span class="p">:{</span><span class="s2">"rating"</span><span class="p">:</span><span class="mf">1.0</span><span class="p">},</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.729Z"</span><span class="p">}</span><span class="w"> </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"buy"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"7"</span><span class="p">,</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.735Z"</span><span class="p">}</span><span class="w"> </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"buy"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"8"</span><span class="p">,</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.741Z"</span><span class="p">}</span><span class="w"> -</span></pre></td></tr></tbody></table> </div> <div class="alert-message warning"><p>Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.</p></div><h2 id='use-sdk-to-prepare-batch-input-file' class='header-anchors'>Use SDK to Prepare Batch Input File</h2><p>Some of the Apache PredictionIO (incubating) SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. The FileExporter creates event in the same way as EventClient except that the events are written to a JSON file instead of being sent to EventSever. The written JSON file can then be used by batch import.</p><div class="tabs"> <ul class="control"> <li data-lang="php"><a href="#tab-fbc88155-1a1b-42c0-a264-4a16d609dfda">PHP SDK</a></li> <li data-lang="python"><a href="#tab-2d02203b-b5a6-494f-a231-299d24c62962">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-1a354f15-f764-4547-b6ad-8 aca9a28dfc7">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-4787908c-3abe-4dc8-bbaa-e172d88314a0">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-fbc88155-1a1b-42c0-a264-4a16d609dfda"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-2d02203b-b5a6-494f-a231-299d24c62962"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</span></pre></td></tr></tbody></table> </div> <div class="alert-message warning"><p>Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.</p></div><h2 id='use-sdk-to-prepare-batch-input-file' class='header-anchors'>Use SDK to Prepare Batch Input File</h2><p>Some of the Apache PredictionIO (incubating) SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. The FileExporter creates event in the same way as EventClient except that the events are written to a JSON file instead of being sent to EventSever. The written JSON file can then be used by batch import.</p><div class="tabs"> <ul class="control"> <li data-lang="php"><a href="#tab-a5b86da7-b1d8-4eaf-819a-96c3aa52d7ab">PHP SDK</a></li> <li data-lang="python"><a href="#tab-09f5efea-3e0e-495c-b298-179ac14a197c">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-bdb2e2d1-37e3-48d2-94a3-d c82843eccba">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-6a3536c8-9fa0-4d51-9b0f-60ae619c9e0a">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-a5b86da7-b1d8-4eaf-819a-96c3aa52d7ab"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-09f5efea-3e0e-495c-b298-179ac14a197c"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -58,7 +58,7 @@ <span class="c"># close the FileExporter when finish writing all events</span> <span class="n">exporter</span><span class="o">.</span><span class="n">close</span><span class="p">()</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1a354f15-f764-4547-b6ad-8aca9a28dfc7"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-4787908c-3abe-4dc8-bbaa-e172d88314a0"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-bdb2e2d1-37e3-48d2-94a3-dc82843eccba"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-6a3536c8-9fa0-4d51-9b0f-60ae619c9e0a"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <h2 id='import-events-from-input-file' class='header-anchors'>Import Events from Input File</h2><p>Importing events from a file can be done easily using the command line interface. Assuming that <code>pio</code> be in your search path, your App ID be <code>123</code>, and the input file <code>my_events.json</code> be in your current working directory:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="gp">$ </span>pio import --appid 123 --input my_events.json </pre></td></tr></tbody></table> </div> <p>After a brief while, the tool should return to the console without any error. Congratulations! You have successfully imported your events.</p></div></div></div></div><footer><div class="container"><div class="seperator"></div><div class="row"><div class="col-md-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//predictionio.incubator.apache.org/install/" target="blank">Download</a></li><li><a href="//predictionio.incubator.apache.org/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">GitHub</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflow</a></li></ul></div></div><div class="col-md-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href=" //predictionio.incubator.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">Source Code</a></li><li><a href="//issues.apache.org/jira/browse/PIO" target="blank">Bug Tracker</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to Development Mailing List</a></li></ul></div></div></div><div class="row"><div class="col-md-12 footer-link-column"><p>Apache PredictionIO, PredictionIO, Apache, the Apache feather logo, and the Apache PredictionIO project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p><p>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p></div></div><div class="row"><div class="col-md-12 footer-link-column"><a class="pull-right" href="http://incubator.apache.org/projects/predictionio.html"><img alt="Apac he Incubator" src="/images/logos/apache_incubator-6954bd16.png"/></a><span>Apache PredictionIO is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</span></div></div></div><div id="footer-bottom"><div class="container"><div class="row"><div class="col-md-12"><div id="footer-logo-wrapper"><img alt="PredictionIO" src="/images/logos/logo-white-d1e9c6e6.png"/><span>â¢</span></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apa che/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub">Star</a> <a class="github-button" href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="https://twitter.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152.png"/></a> <a href="https://www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Facebook" src="/images/icons/facebook-5c57939c.png"/></a> </div></div></div></div>< /div></footer></div><script>(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/batchimport/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html.gz b/datacollection/batchimport/index.html.gz index 56dc5b3..473916b 100644 Binary files a/datacollection/batchimport/index.html.gz and b/datacollection/batchimport/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/channel/index.html ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html b/datacollection/channel/index.html index 5d515ef..b6ee2a4 100644 --- a/datacollection/channel/index.html +++ b/datacollection/channel/index.html @@ -12,7 +12,7 @@ [INFO] [App$] Channel Name: myChannel [INFO] [App$] Channel ID: 2 [INFO] [App$] App ID: 5 -</span></pre></td></tr></tbody></table> </div> <p>Now "myChannel" is created and ready for collecting data.</p><h2 id='collect-data-through-channel' class='header-anchors'>Collect data through Channel</h2><p>The Event API support optional <code>channel</code> query parameter. This allows you to import and query events of the specified channel. When the <code>channel</code> parameter is not specified, the data is collected through the default channel.</p><p>URL: <code>http://localhost:7070/events.json?accessKey=yourAccessKeyString&channel=yourChannelName</code></p><p>Query parameters:</p> <table><thead> <tr> <th style="text-align: left">Field</th> <th style="text-align: left">Type</th> <th style="text-align: left">Description</th> </tr> </thead><tbody> <tr> <td style="text-align: left"><code>accessKey</code></td> <td style="text-align: left">String</td> <td style="text-align: left">The Access Key for your App</td> </tr> <tr> <td style="text-align: left"><code>channel</c ode></td> <td style="text-align: left">String</td> <td style="text-align: left">The channel name (optional). Specify this to import data to this channel. <strong>NOTE: supported in PIO version >= 0.9.2</strong> only. Channel must be created first.</td> </tr> </tbody></table> <p>For SDK usage, one EventClient should be responsible for collecting data of one specific channel. The channel name is specified when the EventClient object is instantiated.</p><p>For example, the following code import event to "YOUR_CHANNEL" of the corresponding App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-19489ddf-a1a9-428e-bfa7-fa6b7aebfcb9">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-8b1cd260-e851-4d60-bdc7-4c1a7c3a33ff">PHP SDK</a></li> <li data-lang="python"><a href="#tab-6fa8e314-62c3-4946-af01-bf6657daaf30">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-96177aeb-cf38-4d5a-9b8d-564553961e82">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-f4fceae0-4700-4972-94b7-bbff56077602">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-19489ddf-a1a9-428e-bfa7-fa6b7aebfcb9"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</span></pre></td></tr></tbody></table> </div> <p>Now "myChannel" is created and ready for collecting data.</p><h2 id='collect-data-through-channel' class='header-anchors'>Collect data through Channel</h2><p>The Event API support optional <code>channel</code> query parameter. This allows you to import and query events of the specified channel. When the <code>channel</code> parameter is not specified, the data is collected through the default channel.</p><p>URL: <code>http://localhost:7070/events.json?accessKey=yourAccessKeyString&channel=yourChannelName</code></p><p>Query parameters:</p> <table><thead> <tr> <th style="text-align: left">Field</th> <th style="text-align: left">Type</th> <th style="text-align: left">Description</th> </tr> </thead><tbody> <tr> <td style="text-align: left"><code>accessKey</code></td> <td style="text-align: left">String</td> <td style="text-align: left">The Access Key for your App</td> </tr> <tr> <td style="text-align: left"><code>channel</c ode></td> <td style="text-align: left">String</td> <td style="text-align: left">The channel name (optional). Specify this to import data to this channel. <strong>NOTE: supported in PIO version >= 0.9.2</strong> only. Channel must be created first.</td> </tr> </tbody></table> <p>For SDK usage, one EventClient should be responsible for collecting data of one specific channel. The channel name is specified when the EventClient object is instantiated.</p><p>For example, the following code import event to "YOUR_CHANNEL" of the corresponding App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-1627d3ab-c515-4e7b-9aa5-c52d2ff86160">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-8380b278-afe9-4dac-904e-891c3597937a">PHP SDK</a></li> <li data-lang="python"><a href="#tab-a5b71a03-7603-4963-9f18-56a6c18dd387">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-edafe808-5f52-4259-a9e6-633efb3f8659">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-bf702dbd-feb9-4ad5-b514-cae1698549a0">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-1627d3ab-c515-4e7b-9aa5-c52d2ff86160"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -39,7 +39,7 @@ }, "eventTime" : "2004-12-13T21:39:45.618Z" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-8b1cd260-e851-4d60-bdc7-4c1a7c3a33ff"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-6fa8e314-62c3-4946-af01-bf6657daaf30"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-8380b278-afe9-4dac-904e-891c3597937a"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-a5b71a03-7603-4963-9f18-56a6c18dd387"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -80,7 +80,7 @@ <span class="n">properties</span><span class="o">=</span><span class="n">event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2014</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">38</span><span class="p">,</span> <span class="mi">45</span><span class="p">,</span> <span class="mi">618000</span><span class="p">,</span> <span class="n">pytz</span><span class="o">.</span><span class="n">utc</span><span class="p">))</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-96177aeb-cf38-4d5a-9b8d-564553961e82"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-f4fceae0-4700-4972-94b7-bbff56077602"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-edafe808-5f52-4259-a9e6-633efb3f8659"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-bf702dbd-feb9-4ad5-b514-cae1698549a0"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <p>You can also follow the EventAPI <a href="/datacollection/eventapi/#debugging-recipes">debug receipts</a> to query the events of specific channel by adding the <code>channel</code> query parameter in the URL.</p><h2 id='delete-a-channel-(including-all-imported-data)' class='header-anchors'>Delete a Channel (including all imported data)</h2><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre>pio app channel-delete <app name> <channel name> </pre></td></tr></tbody></table> </div> <h2 id='delete-the-data-only-of-a-channel' class='header-anchors'>Delete the data-only of a Channel</h2><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre>pio app data-delete <app name> --channel <channel name> </pre></td></tr></tbody></table> </div> <h2 id='accessing-channel-data-in-engine' class='header-anchors'>Accessing Channel Data in Engine</h2><p>To acccess channel data, simply specify the channel name when use the PEventStore or LEventStore API. Data is read from from the default channel if channelName is not specified.</p><p>For example, read data from default channel:</p><div class="highlight scala"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/channel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html.gz b/datacollection/channel/index.html.gz index ef65e9e..3cf576a 100644 Binary files a/datacollection/channel/index.html.gz and b/datacollection/channel/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/eventapi/index.html ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html b/datacollection/eventapi/index.html index ac2f4a9..900b958 100644 --- a/datacollection/eventapi/index.html +++ b/datacollection/eventapi/index.html @@ -22,7 +22,7 @@ Content-Length: 18 <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Name: MyTestApp <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> ID: 6 <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Access Key: WPgcXKd42FPQpZHVbVeMyqF4CQJUnXQmIMTHhX3ZUrSzvy1KXJjdFUrslifa9rnB -</pre></td></tr></tbody></table> </div> <h3 id='creating-your-first-event' class='header-anchors'>Creating Your First Event</h3><p>You may connect to the Event Server with HTTP request or by using one of many <strong>Apache PredictionIO (incubating) SDKs</strong>.</p><p>For example, the following shows how one can create an event involving a single entity. Replace the value of <code>accessKey</code> by the <em>Access Key</em> generated for your App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-c632bd06-23a5-45a1-9628-1a3feb5047d3">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-c38bea85-1fa6-4627-b04c-32f69453861c">PHP SDK</a></li> <li data-lang="python"><a href="#tab-6af28f1f-54de-46a5-bcf2-b4eb2cd09acd">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-2a9c6633-7124-4090-b38e-64134103e9e7">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-a41e6c80-f45f-46f9-ba05-aa63bc55b5a7">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="b ash" id="tab-c632bd06-23a5-45a1-9628-1a3feb5047d3"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td></tr></tbody></table> </div> <h3 id='creating-your-first-event' class='header-anchors'>Creating Your First Event</h3><p>You may connect to the Event Server with HTTP request or by using one of many <strong>Apache PredictionIO (incubating) SDKs</strong>.</p><p>For example, the following shows how one can create an event involving a single entity. Replace the value of <code>accessKey</code> by the <em>Access Key</em> generated for your App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-6b2d6e9b-a994-4ec9-9ab6-08cc34bd181b">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-a413db28-3058-407a-b263-eac78865497d">PHP SDK</a></li> <li data-lang="python"><a href="#tab-d52b764c-81ce-4f1a-bbce-0f7d46444e94">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-b040c8b9-b10f-4fca-a7d2-65d5259fb5cb">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7f57d78a-8fed-4c02-b4df-6bed999e847d">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="b ash" id="tab-6b2d6e9b-a994-4ec9-9ab6-08cc34bd181b"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -53,7 +53,7 @@ Content-Length: 18 } "eventTime" : "2004-12-13T21:39:45.618-07:00" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-c38bea85-1fa6-4627-b04c-32f69453861c"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-a413db28-3058-407a-b263-eac78865497d"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -94,7 +94,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618-07:00'</span> <span class="p">));</span> <span class="cp">?></span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-6af28f1f-54de-46a5-bcf2-b4eb2cd09acd"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-d52b764c-81ce-4f1a-bbce-0f7d46444e94"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -137,7 +137,7 @@ Content-Length: 18 <span class="n">properties</span><span class="o">=</span><span class="n">first_event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">first_event_time</span><span class="p">,</span> <span class="p">)</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-2a9c6633-7124-4090-b38e-64134103e9e7"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-b040c8b9-b10f-4fca-a7d2-65d5259fb5cb"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -158,8 +158,8 @@ Content-Length: 18 <span class="s1">'prop4'</span> <span class="o">=></span> <span class="kp">true</span><span class="p">,</span> <span class="s1">'prop5'</span> <span class="o">=></span> <span class="sx">%w(a b c)</span><span class="p">,</span> <span class="s1">'prop6'</span> <span class="o">=></span> <span class="mi">4</span><span class="o">.</span><span class="mi">56</span> <span class="p">})</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-a41e6c80-f45f-46f9-ba05-aa63bc55b5a7"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> -</pre></td> </tr></tbody></table> </div> </div> </div> <p>For example, the following shows how one can create an event involving two entities (with <code>targetEntity</code>).</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-a9d97152-3bac-4a15-8fe5-d25d311e631a">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-77599aa0-b5b5-48a7-b905-3afc703a2466">PHP SDK</a></li> <li data-lang="python"><a href="#tab-50bc8238-ae8d-4ac6-b46f-1dd74920ef78">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-49e03514-7516-47cd-b2d4-02bbecb1fa85">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-235a7e50-8e23-4cd0-87c2-dc645383f22a">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-a9d97152-3bac-4a15-8fe5-d25d311e631a"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7f57d78a-8fed-4c02-b4df-6bed999e847d"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> </div> <p>For example, the following shows how one can create an event involving two entities (with <code>targetEntity</code>).</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-0c6c51a3-98fb-4961-bb90-f241a3d1aa58">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-36fe7f13-dc0a-43ec-9adb-0020d8dfef67">PHP SDK</a></li> <li data-lang="python"><a href="#tab-107b3811-ffae-43a7-b77c-13ace71c9fb3">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-14336c44-c75f-4f2b-bcf5-d10eb7249e42">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-dcbe93f6-a64e-4767-b6f3-c22c902fb375">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-0c6c51a3-98fb-4961-bb90-f241a3d1aa58"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -186,7 +186,7 @@ Content-Length: 18 }, "eventTime" : "2004-12-13T21:39:45.618Z" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-77599aa0-b5b5-48a7-b905-3afc703a2466"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-36fe7f13-dc0a-43ec-9adb-0020d8dfef67"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -221,7 +221,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618Z'</span> <span class="p">));</span> <span class="cp">?></span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-50bc8238-ae8d-4ac6-b46f-1dd74920ef78"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-107b3811-ffae-43a7-b77c-13ace71c9fb3"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -246,7 +246,7 @@ Content-Length: 18 <span class="n">target_entity_id</span><span class="o">=</span><span class="s">"iid"</span><span class="p">,</span> <span class="n">properties</span><span class="o">=</span><span class="n">second_event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2014</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">38</span><span class="p">,</span> <span class="mi">45</span><span class="p">,</span> <span class="mi">618000</span><span class="p">,</span> <span class="n">pytz</span><span class="o">.</span><span class="n">utc</span><span class="p">))</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-49e03514-7516-47cd-b2d4-02bbecb1fa85"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-14336c44-c75f-4f2b-bcf5-d10eb7249e42"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -263,7 +263,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618Z'</span><span class="p">,</span> <span class="s1">'properties'</span> <span class="o">=></span> <span class="p">{</span> <span class="s1">'someProperty'</span> <span class="o">=></span> <span class="s1">'value1'</span><span class="p">,</span> <span class="s1">'anotherProperty'</span> <span class="o">=></span> <span class="s1">'value2'</span> <span class="p">})</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-235a7e50-8e23-4cd0-87c2-dc645383f22a"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-dcbe93f6-a64e-4767-b6f3-c22c902fb375"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <p>Sample response:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/eventapi/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html.gz b/datacollection/eventapi/index.html.gz index 0bfbe93..57d7de0 100644 Binary files a/datacollection/eventapi/index.html.gz and b/datacollection/eventapi/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/eventmodel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventmodel/index.html.gz b/datacollection/eventmodel/index.html.gz index dd76e64..ba306b4 100644 Binary files a/datacollection/eventmodel/index.html.gz and b/datacollection/eventmodel/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/index.html.gz b/datacollection/index.html.gz index f8ef5a6..5f50b8a 100644 Binary files a/datacollection/index.html.gz and b/datacollection/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/plugin/index.html.gz b/datacollection/plugin/index.html.gz index 7f0d13b..42f6c2e 100644 Binary files a/datacollection/plugin/index.html.gz and b/datacollection/plugin/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/datacollection/webhooks/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/webhooks/index.html.gz b/datacollection/webhooks/index.html.gz index d75f639..2a3361f 100644 Binary files a/datacollection/webhooks/index.html.gz and b/datacollection/webhooks/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/demo/community/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/community/index.html.gz b/demo/community/index.html.gz index 4d39adc..eec96bb 100644 Binary files a/demo/community/index.html.gz and b/demo/community/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/demo/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/index.html.gz b/demo/index.html.gz index 46b9d66..8d04495 100644 Binary files a/demo/index.html.gz and b/demo/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/demo/supervisedlearning/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/supervisedlearning/index.html.gz b/demo/supervisedlearning/index.html.gz index aa2bbe5..ccf07e1 100644 Binary files a/demo/supervisedlearning/index.html.gz and b/demo/supervisedlearning/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/demo/tapster/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/tapster/index.html.gz b/demo/tapster/index.html.gz index dc15e19..c8b9a59 100644 Binary files a/demo/tapster/index.html.gz and b/demo/tapster/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/demo/textclassification/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/textclassification/index.html.gz b/demo/textclassification/index.html.gz index 57287fd..514595f 100644 Binary files a/demo/textclassification/index.html.gz and b/demo/textclassification/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/deploy/engineparams/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/engineparams/index.html.gz b/deploy/engineparams/index.html.gz index 636afc4..c583413 100644 Binary files a/deploy/engineparams/index.html.gz and b/deploy/engineparams/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/deploy/enginevariants/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/enginevariants/index.html.gz b/deploy/enginevariants/index.html.gz index 98570a5..bca9b9d 100644 Binary files a/deploy/enginevariants/index.html.gz and b/deploy/enginevariants/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/deploy/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/index.html.gz b/deploy/index.html.gz index 16249af..c259f4c 100644 Binary files a/deploy/index.html.gz and b/deploy/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/deploy/monitoring/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/monitoring/index.html.gz b/deploy/monitoring/index.html.gz index 1d63b92..59863b3 100644 Binary files a/deploy/monitoring/index.html.gz and b/deploy/monitoring/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/deploy/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/plugin/index.html.gz b/deploy/plugin/index.html.gz index 426e320..10092e8 100644 Binary files a/deploy/plugin/index.html.gz and b/deploy/plugin/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/evaluationdashboard/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/evaluationdashboard/index.html.gz b/evaluation/evaluationdashboard/index.html.gz index b4b0712..2e879c2 100644 Binary files a/evaluation/evaluationdashboard/index.html.gz and b/evaluation/evaluationdashboard/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/history/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/history/index.html.gz b/evaluation/history/index.html.gz index cab10d1..12f68a9 100644 Binary files a/evaluation/history/index.html.gz and b/evaluation/history/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/index.html.gz b/evaluation/index.html.gz index 7d55ef1..3906c8b 100644 Binary files a/evaluation/index.html.gz and b/evaluation/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/metricbuild/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricbuild/index.html.gz b/evaluation/metricbuild/index.html.gz index 5a904c5..23103a2 100644 Binary files a/evaluation/metricbuild/index.html.gz and b/evaluation/metricbuild/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/metricchoose/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricchoose/index.html.gz b/evaluation/metricchoose/index.html.gz index 1da8df1..31dcfa8 100644 Binary files a/evaluation/metricchoose/index.html.gz and b/evaluation/metricchoose/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/a8b9a7b1/evaluation/paramtuning/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/paramtuning/index.html.gz b/evaluation/paramtuning/index.html.gz index e1235eb..915c306 100644 Binary files a/evaluation/paramtuning/index.html.gz and b/evaluation/paramtuning/index.html.gz differ
