Documentation based on apache/incubator-predictionio#7169b696aff69f67de08c0fe3df98f9230f57e9f
Project: http://git-wip-us.apache.org/repos/asf/predictionio-site/repo Commit: http://git-wip-us.apache.org/repos/asf/predictionio-site/commit/30045d35 Tree: http://git-wip-us.apache.org/repos/asf/predictionio-site/tree/30045d35 Diff: http://git-wip-us.apache.org/repos/asf/predictionio-site/diff/30045d35 Branch: refs/heads/asf-site Commit: 30045d35438a1985ec63de838495cca0835b3fbc Parents: 598a5db Author: jenkins <bui...@apache.org> Authored: Mon Feb 12 23:22:18 2018 +0000 Committer: jenkins <bui...@apache.org> Committed: Mon Feb 12 23:22:18 2018 +0000 ---------------------------------------------------------------------- 404/index.html.gz | Bin 4326 -> 4326 bytes algorithm/custom/index.html.gz | Bin 4270 -> 4270 bytes algorithm/index.html.gz | Bin 4423 -> 4423 bytes algorithm/multiple/index.html.gz | Bin 4372 -> 4372 bytes algorithm/switch/index.html.gz | Bin 4389 -> 4389 bytes appintegration/index.html.gz | Bin 4855 -> 4855 bytes batchpredict/index.html.gz | Bin 6360 -> 6360 bytes cli/index.html.gz | Bin 5060 -> 5060 bytes community/contribute-code/index.html.gz | Bin 7500 -> 7500 bytes .../contribute-documentation/index.html.gz | Bin 7426 -> 7426 bytes community/contribute-sdk/index.html.gz | Bin 6476 -> 6476 bytes community/contribute-webhook/index.html.gz | Bin 7590 -> 7590 bytes community/index.html.gz | Bin 4704 -> 4704 bytes community/projects/index.html.gz | Bin 5420 -> 5420 bytes community/submit-template/index.html.gz | Bin 5501 -> 5501 bytes customize/dase/index.html.gz | Bin 8233 -> 8233 bytes customize/index.html.gz | Bin 5555 -> 5555 bytes customize/troubleshooting/index.html.gz | Bin 7334 -> 7334 bytes datacollection/analytics-ipynb/index.html.gz | Bin 6654 -> 6654 bytes datacollection/analytics-tableau/index.html.gz | Bin 7018 -> 7018 bytes datacollection/analytics-zeppelin/index.html.gz | Bin 5904 -> 5904 bytes datacollection/analytics/index.html.gz | Bin 4427 -> 4427 bytes datacollection/batchimport/index.html | 4 +- datacollection/batchimport/index.html.gz | Bin 6293 -> 6296 bytes datacollection/channel/index.html | 6 +- datacollection/channel/index.html.gz | Bin 7227 -> 7227 bytes datacollection/eventapi/index.html | 20 +- datacollection/eventapi/index.html.gz | Bin 10321 -> 10316 bytes datacollection/eventmodel/index.html.gz | Bin 9565 -> 9565 bytes datacollection/index.html.gz | Bin 5000 -> 5000 bytes datacollection/plugin/index.html.gz | Bin 6172 -> 6172 bytes datacollection/webhooks/index.html.gz | Bin 4440 -> 4440 bytes demo/community/index.html.gz | Bin 4930 -> 4930 bytes demo/index.html.gz | Bin 4374 -> 4374 bytes demo/supervisedlearning/index.html.gz | Bin 6575 -> 6575 bytes demo/tapster/index.html.gz | Bin 10624 -> 10624 bytes demo/textclassification/index.html.gz | Bin 19522 -> 19522 bytes deploy/engineparams/index.html.gz | Bin 4265 -> 4265 bytes deploy/enginevariants/index.html.gz | Bin 4269 -> 4269 bytes deploy/index.html.gz | Bin 6254 -> 6254 bytes deploy/monitoring/index.html.gz | Bin 6942 -> 6942 bytes deploy/plugin/index.html.gz | Bin 6211 -> 6211 bytes evaluation/evaluationdashboard/index.html.gz | Bin 4874 -> 4874 bytes evaluation/history/index.html.gz | Bin 4191 -> 4191 bytes evaluation/index.html.gz | Bin 4952 -> 4952 bytes evaluation/metricbuild/index.html.gz | Bin 6938 -> 6938 bytes evaluation/metricchoose/index.html.gz | Bin 5792 -> 5792 bytes evaluation/paramtuning/index.html.gz | Bin 10324 -> 10324 bytes gallery/template-gallery/index.html | 2 +- gallery/template-gallery/index.html.gz | Bin 11777 -> 11784 bytes github/index.html.gz | Bin 3094 -> 3094 bytes index.html.gz | Bin 5377 -> 5377 bytes install/config-datastore/index.html.gz | Bin 4706 -> 4706 bytes install/index.html.gz | Bin 5068 -> 5068 bytes install/install-linux/index.html.gz | Bin 7337 -> 7337 bytes install/install-sourcecode/index.html.gz | Bin 7899 -> 7899 bytes install/install-vagrant/index.html.gz | Bin 6234 -> 6234 bytes install/launch-aws/index.html.gz | Bin 5345 -> 5345 bytes install/sdk/index.html.gz | Bin 4183 -> 4183 bytes javascripts/application-a6acb1f5.js.gz | Bin 36970 -> 36970 bytes javascripts/tryit-e18ad27c.js.gz | Bin 322 -> 322 bytes .../dimensionalityreduction/index.html.gz | Bin 16918 -> 16918 bytes machinelearning/modelingworkflow/index.html.gz | Bin 5127 -> 5127 bytes production/deploy-cloudformation/index.html.gz | Bin 4242 -> 4242 bytes resources/faq/index.html.gz | Bin 9364 -> 9364 bytes resources/glossary/index.html.gz | Bin 4951 -> 4951 bytes resources/intellij/index.html.gz | Bin 7880 -> 7880 bytes resources/release/index.html.gz | Bin 4771 -> 4771 bytes resources/upgrade/index.html.gz | Bin 9919 -> 9919 bytes samples/index.html.gz | Bin 5590 -> 5590 bytes samples/languages/index.html.gz | Bin 5916 -> 5916 bytes samples/level-1/index.html.gz | Bin 4253 -> 4253 bytes samples/level-2-1/index.html.gz | Bin 4261 -> 4261 bytes samples/level-2-2/index.html.gz | Bin 4262 -> 4262 bytes samples/level-2/index.html.gz | Bin 4254 -> 4254 bytes samples/level-3-1/index.html.gz | Bin 4261 -> 4261 bytes samples/level-3-2/index.html.gz | Bin 4262 -> 4262 bytes samples/level-3/index.html.gz | Bin 4255 -> 4255 bytes samples/level-4-1/index.html.gz | Bin 4262 -> 4262 bytes samples/level-4-2/index.html.gz | Bin 4261 -> 4261 bytes samples/level-4-3/index.html.gz | Bin 4262 -> 4262 bytes samples/level-4/index.html.gz | Bin 4256 -> 4256 bytes samples/narrow/index.html.gz | Bin 4202 -> 4202 bytes samples/sizing/index.html.gz | Bin 4539 -> 4539 bytes samples/tabs/index.html | 18 +- samples/tabs/index.html.gz | Bin 5415 -> 5417 bytes sdk/community/index.html.gz | Bin 4986 -> 4986 bytes sdk/index.html.gz | Bin 4432 -> 4432 bytes sdk/java/index.html.gz | Bin 4654 -> 4654 bytes sdk/php/index.html.gz | Bin 4629 -> 4629 bytes sdk/python/index.html.gz | Bin 4637 -> 4637 bytes sdk/ruby/index.html.gz | Bin 4631 -> 4631 bytes search/index.html.gz | Bin 4200 -> 4200 bytes sitemap.xml | 260 +++++++++---------- start/customize/index.html.gz | Bin 4708 -> 4708 bytes start/deploy/index.html.gz | Bin 4590 -> 4590 bytes start/download/index.html.gz | Bin 4508 -> 4508 bytes start/index.html.gz | Bin 5348 -> 5348 bytes stylesheets/application-eccfc6cb.css.gz | Bin 24889 -> 24889 bytes support/index.html.gz | Bin 4830 -> 4830 bytes system/anotherdatastore/index.html.gz | Bin 8040 -> 8040 bytes system/deploy-cloudformation/index.html.gz | Bin 8987 -> 8987 bytes system/index.html.gz | Bin 5132 -> 5132 bytes .../classification/add-algorithm/index.html.gz | Bin 6881 -> 6881 bytes templates/classification/dase/index.html.gz | Bin 8463 -> 8463 bytes templates/classification/how-to/index.html.gz | Bin 4327 -> 4327 bytes templates/classification/quickstart/index.html | 30 +-- .../classification/quickstart/index.html.gz | Bin 13178 -> 13177 bytes .../reading-custom-properties/index.html.gz | Bin 5721 -> 5721 bytes .../complementarypurchase/dase/index.html.gz | Bin 10418 -> 10418 bytes .../complementarypurchase/quickstart/index.html | 20 +- .../quickstart/index.html.gz | Bin 12358 -> 12358 bytes .../adjust-score/index.html.gz | Bin 6864 -> 6864 bytes .../ecommercerecommendation/dase/index.html.gz | Bin 14426 -> 14426 bytes .../how-to/index.html.gz | Bin 4334 -> 4334 bytes .../quickstart/index.html | 60 ++--- .../quickstart/index.html.gz | Bin 15518 -> 15509 bytes .../train-with-rate-event/index.html.gz | Bin 7158 -> 7158 bytes templates/index.html.gz | Bin 4438 -> 4438 bytes .../dase/index.html.gz | Bin 11533 -> 11533 bytes .../quickstart/index.html | 60 ++--- .../quickstart/index.html.gz | Bin 15433 -> 15447 bytes templates/leadscoring/dase/index.html.gz | Bin 11280 -> 11280 bytes templates/leadscoring/quickstart/index.html | 30 +-- templates/leadscoring/quickstart/index.html.gz | Bin 12730 -> 12728 bytes templates/productranking/dase/index.html.gz | Bin 12489 -> 12489 bytes templates/productranking/quickstart/index.html | 40 +-- .../productranking/quickstart/index.html.gz | Bin 12694 -> 12695 bytes .../batch-evaluator/index.html.gz | Bin 7704 -> 7704 bytes .../blacklist-items/index.html.gz | Bin 6989 -> 6989 bytes .../customize-data-prep/index.html.gz | Bin 6944 -> 6944 bytes .../customize-serving/index.html.gz | Bin 7214 -> 7214 bytes templates/recommendation/dase/index.html.gz | Bin 10551 -> 10551 bytes .../recommendation/evaluation/index.html.gz | Bin 10390 -> 10390 bytes templates/recommendation/how-to/index.html.gz | Bin 4366 -> 4366 bytes templates/recommendation/quickstart/index.html | 30 +-- .../recommendation/quickstart/index.html.gz | Bin 12477 -> 12479 bytes .../reading-custom-events/index.html.gz | Bin 5706 -> 5706 bytes .../index.html.gz | Bin 6618 -> 6618 bytes templates/similarproduct/dase/index.html.gz | Bin 12835 -> 12835 bytes templates/similarproduct/how-to/index.html.gz | Bin 4359 -> 4359 bytes .../multi-events-multi-algos/index.html.gz | Bin 11475 -> 11475 bytes templates/similarproduct/quickstart/index.html | 40 +-- .../similarproduct/quickstart/index.html.gz | Bin 14079 -> 14077 bytes .../recommended-user/index.html.gz | Bin 6735 -> 6735 bytes .../return-item-properties/index.html.gz | Bin 6421 -> 6421 bytes .../rid-user-set-event/index.html.gz | Bin 6024 -> 6024 bytes .../train-with-rate-event/index.html.gz | Bin 7049 -> 7049 bytes templates/vanilla/dase/index.html.gz | Bin 6475 -> 6475 bytes templates/vanilla/quickstart/index.html | 10 +- templates/vanilla/quickstart/index.html.gz | Bin 9121 -> 9128 bytes tryit/index.html.gz | Bin 2821 -> 2821 bytes 152 files changed, 315 insertions(+), 315 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/404/index.html.gz ---------------------------------------------------------------------- diff --git a/404/index.html.gz b/404/index.html.gz index 027293e..05f4868 100644 Binary files a/404/index.html.gz and b/404/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/algorithm/custom/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/custom/index.html.gz b/algorithm/custom/index.html.gz index 3df37b0..7ddb2ba 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/predictionio-site/blob/30045d35/algorithm/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/index.html.gz b/algorithm/index.html.gz index d616e74..12ae60c 100644 Binary files a/algorithm/index.html.gz and b/algorithm/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/algorithm/multiple/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/multiple/index.html.gz b/algorithm/multiple/index.html.gz index 8990b6f..6bd4ffe 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/predictionio-site/blob/30045d35/algorithm/switch/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/switch/index.html.gz b/algorithm/switch/index.html.gz index 70b6b04..a99535f 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/predictionio-site/blob/30045d35/appintegration/index.html.gz ---------------------------------------------------------------------- diff --git a/appintegration/index.html.gz b/appintegration/index.html.gz index 0658e5d..3394a41 100644 Binary files a/appintegration/index.html.gz and b/appintegration/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/batchpredict/index.html.gz ---------------------------------------------------------------------- diff --git a/batchpredict/index.html.gz b/batchpredict/index.html.gz index 62ced89..589b68c 100644 Binary files a/batchpredict/index.html.gz and b/batchpredict/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/cli/index.html.gz ---------------------------------------------------------------------- diff --git a/cli/index.html.gz b/cli/index.html.gz index 5407bc6..32ffe81 100644 Binary files a/cli/index.html.gz and b/cli/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/community/contribute-code/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-code/index.html.gz b/community/contribute-code/index.html.gz index 34b17f0..e8ea8d3 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/predictionio-site/blob/30045d35/community/contribute-documentation/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-documentation/index.html.gz b/community/contribute-documentation/index.html.gz index 5445d9e..cb7fa75 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/predictionio-site/blob/30045d35/community/contribute-sdk/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-sdk/index.html.gz b/community/contribute-sdk/index.html.gz index cccb251..b722ff7 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/predictionio-site/blob/30045d35/community/contribute-webhook/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-webhook/index.html.gz b/community/contribute-webhook/index.html.gz index e90eaff..7a0b3ca 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/predictionio-site/blob/30045d35/community/index.html.gz ---------------------------------------------------------------------- diff --git a/community/index.html.gz b/community/index.html.gz index 66bff8e..c897fea 100644 Binary files a/community/index.html.gz and b/community/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/community/projects/index.html.gz ---------------------------------------------------------------------- diff --git a/community/projects/index.html.gz b/community/projects/index.html.gz index 1cc052e..f3a873a 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/predictionio-site/blob/30045d35/community/submit-template/index.html.gz ---------------------------------------------------------------------- diff --git a/community/submit-template/index.html.gz b/community/submit-template/index.html.gz index db1d1a0..efc071d 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/predictionio-site/blob/30045d35/customize/dase/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/dase/index.html.gz b/customize/dase/index.html.gz index 139f92b..8ab8258 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/predictionio-site/blob/30045d35/customize/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/index.html.gz b/customize/index.html.gz index 1eb3ee4..1e1ee7f 100644 Binary files a/customize/index.html.gz and b/customize/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/customize/troubleshooting/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/troubleshooting/index.html.gz b/customize/troubleshooting/index.html.gz index b9fef7b..114a1b6 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/predictionio-site/blob/30045d35/datacollection/analytics-ipynb/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-ipynb/index.html.gz b/datacollection/analytics-ipynb/index.html.gz index bcf1c1f..6d09f0c 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/predictionio-site/blob/30045d35/datacollection/analytics-tableau/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-tableau/index.html.gz b/datacollection/analytics-tableau/index.html.gz index 161fb44..0eca98a 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/predictionio-site/blob/30045d35/datacollection/analytics-zeppelin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-zeppelin/index.html.gz b/datacollection/analytics-zeppelin/index.html.gz index c578d0b..dd28f6b 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/predictionio-site/blob/30045d35/datacollection/analytics/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics/index.html.gz b/datacollection/analytics/index.html.gz index eacb821..9dcda35 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/predictionio-site/blob/30045d35/datacollection/batchimport/index.html ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html index beed83e..161d03a 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 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-890d044d-1c93-4977-9b5f-993bda8fb329">PHP SDK</a></li> <li data-lang="python"><a href="#tab-0f244ee5-6876-43b9-b19f-2ca287f5ad51">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-14af9eea-4a2c-4348-811e-bbf57036099f"> Ruby SDK</a></li> <li data-lang="java"><a href="#tab-aa0939cd-1626-4129-a976-c57cc67dae87">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-890d044d-1c93-4977-9b5f-993bda8fb329"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-0f244ee5-6876-43b9-b19f-2ca287f5ad51"> <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 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-2e6e0e99-184a-4a3e-a28e-efd643ef5060">PHP SDK</a></li> <li data-lang="python"><a href="#tab-d4533546-95bd-4f83-874e-7ff77711056b">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-5c66fedf-4463-409e-ac3d-31a999ccdbf5"> Ruby SDK</a></li> <li data-lang="java"><a href="#tab-e49b9fa1-8762-4464-a401-28ad299422df">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-2e6e0e99-184a-4a3e-a28e-efd643ef5060"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-d4533546-95bd-4f83-874e-7ff77711056b"> <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-14af9eea-4a2c-4348-811e-bbf57036099f"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-aa0939cd-1626-4129-a976-c57cc67dae87"> <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-5c66fedf-4463-409e-ac3d-31a999ccdbf5"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-e49b9fa1-8762-4464-a401-28ad299422df"> <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.apache.org/install/" target="blank">Download</a></li><li><a href="//predictionio.apache.org/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">GitHub</a></li><li><a href="mailto:user-subscr...@predictionio.apache.org" 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.apache.org/comm unity/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:dev-subscr...@predictionio.apache.org" 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><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="/apache/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/predictionio-site/blob/30045d35/datacollection/batchimport/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html.gz b/datacollection/batchimport/index.html.gz index aff1a65..3108303 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/predictionio-site/blob/30045d35/datacollection/channel/index.html ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html b/datacollection/channel/index.html index abb9e92..98e9ee6 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-f70d3976-9bd0-4019-b30a-e4f1e6fda484">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-9d394262-c0f9-4234-8ed0-e7b63ba83637">PHP SDK</a></li> <li data-lang="python"><a href="#tab-53478692-e6a0-4505-bb51-5dc5a0ebfbdc">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-d658cbd0-8140-4a85-b1b3-f99d8cfcf0fc">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-a856e6ff-6a58-481a-855e-46a6df936305">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-f70d3976-9bd0-4019-b30a-e4f1e6fda484"> <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-ff47b9ee-102b-43ae-aa72-c42ef3e15976">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-4dd1d11e-f887-42eb-a397-5fd5a15d8e8f">PHP SDK</a></li> <li data-lang="python"><a href="#tab-356a718f-42bb-4c3d-9263-1dcdb77a57fb">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-8ea5778c-03bd-4dd5-a328-af4f664921e4">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-51090e47-0ac2-475c-af05-fb446c1cc82d">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-ff47b9ee-102b-43ae-aa72-c42ef3e15976"> <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-9d394262-c0f9-4234-8ed0-e7b63ba83637"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-53478692-e6a0-4505-bb51-5dc5a0ebfbdc"> <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-4dd1d11e-f887-42eb-a397-5fd5a15d8e8f"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-356a718f-42bb-4c3d-9263-1dcdb77a57fb"> <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-d658cbd0-8140-4a85-b1b3-f99d8cfcf0fc"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-a856e6ff-6a58-481a-855e-46a6df936305"> <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-8ea5778c-03bd-4dd5-a328-af4f664921e4"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-51090e47-0ac2-475c-af05-fb446c1cc82d"> <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/predictionio-site/blob/30045d35/datacollection/channel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html.gz b/datacollection/channel/index.html.gz index b7dcced..d67dc0a 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/predictionio-site/blob/30045d35/datacollection/eventapi/index.html ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html b/datacollection/eventapi/index.html index 83efdc8..57f60a2 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 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-9dbd1a8f-f437-49f7-a6e4-c6195917ed40">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-4bd69ecb-bac4-41a1-8620-09e6d0c907b6">PHP SDK</a></li> <li data-lang="python"><a href="#tab-fc027d8d-6692-49d1-93b0-5b94426627a6">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-47f3c211-6b14-4beb-86ef-4852b0d72b21">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7e76a301-d58b-42c4-bed6-93220987e678">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab- 9dbd1a8f-f437-49f7-a6e4-c6195917ed40"> <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 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-0b9a3328-a84b-4668-8e6e-a454f35df325">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-e377f581-8dc5-4ad3-8bd5-8225aac914e6">PHP SDK</a></li> <li data-lang="python"><a href="#tab-175f1d9c-2262-4861-81a6-7523e9b389e6">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-76ee9a23-4ce0-4cc5-8d2e-71c25d33c1d6">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-20710724-e822-4f4d-b49a-4cb43c11070e">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab- 0b9a3328-a84b-4668-8e6e-a454f35df325"> <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-4bd69ecb-bac4-41a1-8620-09e6d0c907b6"> <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-e377f581-8dc5-4ad3-8bd5-8225aac914e6"> <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-fc027d8d-6692-49d1-93b0-5b94426627a6"> <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-175f1d9c-2262-4861-81a6-7523e9b389e6"> <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-47f3c211-6b14-4beb-86ef-4852b0d72b21"> <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-76ee9a23-4ce0-4cc5-8d2e-71c25d33c1d6"> <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-7e76a301-d58b-42c4-bed6-93220987e678"> <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-36d701c5-cdf5-4631-a3b1-5b0d680f3c07">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-ce527806-32ea-4bf6-8ba3-b7c78893ac2d">PHP SDK</a></li> <li data-lang="python"><a href="#tab-a0502f03-1554-4892-8c69-203424cd5455">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-97544bbd-fe0f-4e4d-b101-5f6253fa7c18">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-5cd3f752-8cf6-449f-b15e-287c39405f7f">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-36d701c5-cdf5-4631-a3b1-5b0d680f3c07"> <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-20710724-e822-4f4d-b49a-4cb43c11070e"> <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-1ded8adc-ec05-4935-a2e9-01715f7d40e9">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-67cd0de2-682d-4e86-9d1f-ba43b69ac1aa">PHP SDK</a></li> <li data-lang="python"><a href="#tab-5c03a3af-457d-4900-9ab5-a87eb03fda1b">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-01a62101-69d3-47a6-a02c-3c7ca523b699">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-e3bdd4fe-ea5d-46a4-bd80-b6d78c8f978e">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-1ded8adc-ec05-4935-a2e9-01715f7d40e9"> <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-ce527806-32ea-4bf6-8ba3-b7c78893ac2d"> <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-67cd0de2-682d-4e86-9d1f-ba43b69ac1aa"> <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-a0502f03-1554-4892-8c69-203424cd5455"> <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-5c03a3af-457d-4900-9ab5-a87eb03fda1b"> <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-97544bbd-fe0f-4e4d-b101-5f6253fa7c18"> <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-01a62101-69d3-47a6-a02c-3c7ca523b699"> <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-5cd3f752-8cf6-449f-b15e-287c39405f7f"> <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-e3bdd4fe-ea5d-46a4-bd80-b6d78c8f978e"> <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/predictionio-site/blob/30045d35/datacollection/eventapi/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html.gz b/datacollection/eventapi/index.html.gz index 7dcc756..36a4e6c 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/predictionio-site/blob/30045d35/datacollection/eventmodel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventmodel/index.html.gz b/datacollection/eventmodel/index.html.gz index 7c7289e..dfc8866 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/predictionio-site/blob/30045d35/datacollection/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/index.html.gz b/datacollection/index.html.gz index f846170..efa33c2 100644 Binary files a/datacollection/index.html.gz and b/datacollection/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/datacollection/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/plugin/index.html.gz b/datacollection/plugin/index.html.gz index 3d898cb..5ce6e03 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/predictionio-site/blob/30045d35/datacollection/webhooks/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/webhooks/index.html.gz b/datacollection/webhooks/index.html.gz index 5be1253..acd2066 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/predictionio-site/blob/30045d35/demo/community/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/community/index.html.gz b/demo/community/index.html.gz index 257c5bf..f1fdb9b 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/predictionio-site/blob/30045d35/demo/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/index.html.gz b/demo/index.html.gz index 84ce6f5..37c4f3c 100644 Binary files a/demo/index.html.gz and b/demo/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/demo/supervisedlearning/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/supervisedlearning/index.html.gz b/demo/supervisedlearning/index.html.gz index 897a957..9454bb6 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/predictionio-site/blob/30045d35/demo/tapster/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/tapster/index.html.gz b/demo/tapster/index.html.gz index b0ba8aa..b23e434 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/predictionio-site/blob/30045d35/demo/textclassification/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/textclassification/index.html.gz b/demo/textclassification/index.html.gz index 6937bad..406385c 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/predictionio-site/blob/30045d35/deploy/engineparams/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/engineparams/index.html.gz b/deploy/engineparams/index.html.gz index 793f1f4..c2f65bb 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/predictionio-site/blob/30045d35/deploy/enginevariants/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/enginevariants/index.html.gz b/deploy/enginevariants/index.html.gz index 7665f22..f2056cf 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/predictionio-site/blob/30045d35/deploy/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/index.html.gz b/deploy/index.html.gz index 416f52c..278ee5e 100644 Binary files a/deploy/index.html.gz and b/deploy/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/deploy/monitoring/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/monitoring/index.html.gz b/deploy/monitoring/index.html.gz index 5faf8a3..5f91c1e 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/predictionio-site/blob/30045d35/deploy/plugin/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/plugin/index.html.gz b/deploy/plugin/index.html.gz index 328244e..8229587 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/predictionio-site/blob/30045d35/evaluation/evaluationdashboard/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/evaluationdashboard/index.html.gz b/evaluation/evaluationdashboard/index.html.gz index d96549e..c50cbdc 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/predictionio-site/blob/30045d35/evaluation/history/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/history/index.html.gz b/evaluation/history/index.html.gz index 0e864c4..50f11a4 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/predictionio-site/blob/30045d35/evaluation/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/index.html.gz b/evaluation/index.html.gz index 8053e87..1f85b49 100644 Binary files a/evaluation/index.html.gz and b/evaluation/index.html.gz differ http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/30045d35/evaluation/metricbuild/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricbuild/index.html.gz b/evaluation/metricbuild/index.html.gz index f5e16c7..a4b4894 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/predictionio-site/blob/30045d35/evaluation/metricchoose/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricchoose/index.html.gz b/evaluation/metricchoose/index.html.gz index 1844821..9acee83 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/predictionio-site/blob/30045d35/evaluation/paramtuning/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/paramtuning/index.html.gz b/evaluation/paramtuning/index.html.gz index da65c28..34f360a 100644 Binary files a/evaluation/paramtuning/index.html.gz and b/evaluation/paramtuning/index.html.gz differ