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/92846165 Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/tree/92846165 Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/diff/92846165 Branch: refs/heads/asf-site Commit: 92846165f32a4887c787bca605638ffb760b4e72 Parents: a8b9a7b Author: jenkins <[email protected]> Authored: Thu Oct 19 02:41:38 2017 +0000 Committer: jenkins <[email protected]> Committed: Thu Oct 19 02:41:38 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 6595 -> 6601 bytes datacollection/channel/index.html | 6 +- datacollection/channel/index.html.gz | Bin 7538 -> 7536 bytes datacollection/eventapi/index.html | 20 +- datacollection/eventapi/index.html.gz | Bin 10621 -> 10622 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 11956 -> 11952 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.gz | Bin 5378 -> 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 5734 -> 5728 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 13456 -> 13459 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 12641 -> 12644 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 15820 -> 15811 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 15734 -> 15741 bytes templates/leadscoring/dase/index.html.gz | Bin 11582 -> 11582 bytes templates/leadscoring/quickstart/index.html | 30 +-- templates/leadscoring/quickstart/index.html.gz | Bin 13018 -> 13014 bytes templates/productranking/dase/index.html.gz | Bin 12790 -> 12790 bytes templates/productranking/quickstart/index.html | 40 +-- .../productranking/quickstart/index.html.gz | Bin 12981 -> 12986 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 12768 -> 12765 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 14370 -> 14379 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 -> 9419 bytes tryit/index.html.gz | Bin 3126 -> 3126 bytes 152 files changed, 315 insertions(+), 315 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/404/index.html.gz ---------------------------------------------------------------------- diff --git a/404/index.html.gz b/404/index.html.gz index 353c564..4b7e72e 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/92846165/algorithm/custom/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/custom/index.html.gz b/algorithm/custom/index.html.gz index 7764f01..d993a74 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/92846165/algorithm/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/index.html.gz b/algorithm/index.html.gz index d2c45c5..530cce9 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/92846165/algorithm/multiple/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/multiple/index.html.gz b/algorithm/multiple/index.html.gz index 69faaab..cd60b5c 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/92846165/algorithm/switch/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/switch/index.html.gz b/algorithm/switch/index.html.gz index 8032a19..74e9775 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/92846165/appintegration/index.html.gz ---------------------------------------------------------------------- diff --git a/appintegration/index.html.gz b/appintegration/index.html.gz index 5255861..97d6591 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/92846165/batchpredict/index.html.gz ---------------------------------------------------------------------- diff --git a/batchpredict/index.html.gz b/batchpredict/index.html.gz index 90582cc..40fa51c 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/92846165/cli/index.html.gz ---------------------------------------------------------------------- diff --git a/cli/index.html.gz b/cli/index.html.gz index 1f37465..4f8a8cf 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/92846165/community/contribute-code/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-code/index.html.gz b/community/contribute-code/index.html.gz index ec94cdc..fc19e87 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/92846165/community/contribute-documentation/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-documentation/index.html.gz b/community/contribute-documentation/index.html.gz index 433a528..6769e2e 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/92846165/community/contribute-sdk/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-sdk/index.html.gz b/community/contribute-sdk/index.html.gz index a66706c..4b735c7 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/92846165/community/contribute-webhook/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-webhook/index.html.gz b/community/contribute-webhook/index.html.gz index ff149cb..527212f 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/92846165/community/index.html.gz ---------------------------------------------------------------------- diff --git a/community/index.html.gz b/community/index.html.gz index a8d1526..7515c17 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/92846165/community/projects/index.html.gz ---------------------------------------------------------------------- diff --git a/community/projects/index.html.gz b/community/projects/index.html.gz index a548198..69f70b1 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/92846165/community/submit-template/index.html.gz ---------------------------------------------------------------------- diff --git a/community/submit-template/index.html.gz b/community/submit-template/index.html.gz index d78f126..4ad9105 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/92846165/customize/dase/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/dase/index.html.gz b/customize/dase/index.html.gz index 98cbc36..afd1100 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/92846165/customize/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/index.html.gz b/customize/index.html.gz index 996835a..effbe78 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/92846165/customize/troubleshooting/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/troubleshooting/index.html.gz b/customize/troubleshooting/index.html.gz index cd32ff2..8a6e2a1 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/92846165/datacollection/analytics-ipynb/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-ipynb/index.html.gz b/datacollection/analytics-ipynb/index.html.gz index e299301..dcb018c 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/92846165/datacollection/analytics-tableau/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-tableau/index.html.gz b/datacollection/analytics-tableau/index.html.gz index 0a9edb8..5afbc12 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/92846165/datacollection/analytics-zeppelin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-zeppelin/index.html.gz b/datacollection/analytics-zeppelin/index.html.gz index cae6219..76768ef 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/92846165/datacollection/analytics/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics/index.html.gz b/datacollection/analytics/index.html.gz index e1f1cb6..a687187 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/92846165/datacollection/batchimport/index.html ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html index fb80a85..af0d083 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-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 +</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-e0a5bf53-3a32-491b-8e1a-ad8424197ec7">PHP SDK</a></li> <li data-lang="python"><a href="#tab-9ed5b951-2090-41b3-83f6-5745633f8bfe">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-699a7cbb-5155-4d37-9af7-c d2c3636fbc6">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-aa8698ff-4392-4b73-9556-9d92585827a4">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-e0a5bf53-3a32-491b-8e1a-ad8424197ec7"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-9ed5b951-2090-41b3-83f6-5745633f8bfe"> <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-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 data-tab="Ruby SDK" data-lang="ruby" id="tab-699a7cbb-5155-4d37-9af7-cd2c3636fbc6"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-aa8698ff-4392-4b73-9556-9d92585827a4"> <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/92846165/datacollection/batchimport/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html.gz b/datacollection/batchimport/index.html.gz index 473916b..1b422ba 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/92846165/datacollection/channel/index.html ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html b/datacollection/channel/index.html index b6ee2a4..cf9cd26 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-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 +</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-8c2644ab-fedd-4ae2-bdfd-d5b0d82d9ae7">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-16b92b23-5457-470e-afc2-65acabecd303">PHP SDK</a></li> <li data-lang="python"><a href="#tab-47f62077-3181-4799-8b5d-01006fc9ab74">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-223abaa9-27ed-403e-9548-99bb1d0b1d54">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-1fbbf5ed-adf2-4a2b-a55e-044b135d4a74">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-8c2644ab-fedd-4ae2-bdfd-d5b0d82d9ae7"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-16b92b23-5457-470e-afc2-65acabecd303"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-47f62077-3181-4799-8b5d-01006fc9ab74"> <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-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 data-tab="Ruby SDK" data-lang="ruby" id="tab-223abaa9-27ed-403e-9548-99bb1d0b1d54"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-1fbbf5ed-adf2-4a2b-a55e-044b135d4a74"> <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/92846165/datacollection/channel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html.gz b/datacollection/channel/index.html.gz index 3cf576a..33bf34e 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/92846165/datacollection/eventapi/index.html ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html b/datacollection/eventapi/index.html index 900b958..98b4f6e 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-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 +</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-e4979508-aca0-4151-9907-dff46dc80a1a">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-d660fd98-2859-4cb2-9556-1232ad23bb12">PHP SDK</a></li> <li data-lang="python"><a href="#tab-b0a464d1-9dc1-4c90-83aa-e175939320b2">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-98a769a7-b301-4ce4-9d7d-f1bf3ecddcc7">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-a79e3c72-ae82-43ec-be84-a9d2a25eb13f">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="b ash" id="tab-e4979508-aca0-4151-9907-dff46dc80a1a"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-d660fd98-2859-4cb2-9556-1232ad23bb12"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-b0a464d1-9dc1-4c90-83aa-e175939320b2"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-98a769a7-b301-4ce4-9d7d-f1bf3ecddcc7"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-a79e3c72-ae82-43ec-be84-a9d2a25eb13f"> <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-5e666a44-b133-4438-a080-27bb5003f7c9">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-b1888727-0d8e-4380-9668-9f3915653115">PHP SDK</a></li> <li data-lang="python"><a href="#tab-7b12935e-aa08-4fe3-83cb-873335771bf2">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-415ccdf3-b471-4238-a0cf-c7ab9a4033fc">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-509c6758-38f8-4ff7-a436-7211c7bdb5f9">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-5e666a44-b133-4438-a080-27bb5003f7c9"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-b1888727-0d8e-4380-9668-9f3915653115"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-7b12935e-aa08-4fe3-83cb-873335771bf2"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-415ccdf3-b471-4238-a0cf-c7ab9a4033fc"> <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-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 data-tab="Java SDK" data-lang="java" id="tab-509c6758-38f8-4ff7-a436-7211c7bdb5f9"> <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/92846165/datacollection/eventapi/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html.gz b/datacollection/eventapi/index.html.gz index 57d7de0..00f9b8f 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/92846165/datacollection/eventmodel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventmodel/index.html.gz b/datacollection/eventmodel/index.html.gz index ba306b4..ce1d5af 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/92846165/datacollection/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/index.html.gz b/datacollection/index.html.gz index 5f50b8a..46647cd 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/92846165/datacollection/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/plugin/index.html.gz b/datacollection/plugin/index.html.gz index 42f6c2e..eabdd47 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/92846165/datacollection/webhooks/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/webhooks/index.html.gz b/datacollection/webhooks/index.html.gz index 2a3361f..daf700d 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/92846165/demo/community/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/community/index.html.gz b/demo/community/index.html.gz index eec96bb..2662c6a 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/92846165/demo/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/index.html.gz b/demo/index.html.gz index 8d04495..a5bbdaf 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/92846165/demo/supervisedlearning/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/supervisedlearning/index.html.gz b/demo/supervisedlearning/index.html.gz index ccf07e1..ef794ed 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/92846165/demo/tapster/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/tapster/index.html.gz b/demo/tapster/index.html.gz index c8b9a59..a804b0c 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/92846165/demo/textclassification/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/textclassification/index.html.gz b/demo/textclassification/index.html.gz index 514595f..35d30e8 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/92846165/deploy/engineparams/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/engineparams/index.html.gz b/deploy/engineparams/index.html.gz index c583413..e0390be 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/92846165/deploy/enginevariants/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/enginevariants/index.html.gz b/deploy/enginevariants/index.html.gz index bca9b9d..8395ec6 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/92846165/deploy/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/index.html.gz b/deploy/index.html.gz index c259f4c..73b5d91 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/92846165/deploy/monitoring/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/monitoring/index.html.gz b/deploy/monitoring/index.html.gz index 59863b3..8e32ef8 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/92846165/deploy/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/plugin/index.html.gz b/deploy/plugin/index.html.gz index 10092e8..10737b4 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/92846165/evaluation/evaluationdashboard/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/evaluationdashboard/index.html.gz b/evaluation/evaluationdashboard/index.html.gz index 2e879c2..328e978 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/92846165/evaluation/history/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/history/index.html.gz b/evaluation/history/index.html.gz index 12f68a9..a58eeea 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/92846165/evaluation/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/index.html.gz b/evaluation/index.html.gz index 3906c8b..c7b4b9b 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/92846165/evaluation/metricbuild/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricbuild/index.html.gz b/evaluation/metricbuild/index.html.gz index 23103a2..273bc71 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/92846165/evaluation/metricchoose/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricchoose/index.html.gz b/evaluation/metricchoose/index.html.gz index 31dcfa8..cd2c354 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/92846165/evaluation/paramtuning/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/paramtuning/index.html.gz b/evaluation/paramtuning/index.html.gz index 915c306..d6da913 100644 Binary files a/evaluation/paramtuning/index.html.gz and b/evaluation/paramtuning/index.html.gz differ
