You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by gi...@apache.org on 2017/10/19 02:41:43 UTC
[1/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Repository: incubator-predictionio-site
Updated Branches:
refs/heads/asf-site a8b9a7b1a -> 92846165f
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/quickstart/index.html.gz b/templates/similarproduct/quickstart/index.html.gz
index 0a58c75..1266606 100644
Binary files a/templates/similarproduct/quickstart/index.html.gz and b/templates/similarproduct/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/recommended-user/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/recommended-user/index.html.gz b/templates/similarproduct/recommended-user/index.html.gz
index 828d7e9..a4c3ffd 100644
Binary files a/templates/similarproduct/recommended-user/index.html.gz and b/templates/similarproduct/recommended-user/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/return-item-properties/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/return-item-properties/index.html.gz b/templates/similarproduct/return-item-properties/index.html.gz
index e2f7fdc..590221f 100644
Binary files a/templates/similarproduct/return-item-properties/index.html.gz and b/templates/similarproduct/return-item-properties/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/rid-user-set-event/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/rid-user-set-event/index.html.gz b/templates/similarproduct/rid-user-set-event/index.html.gz
index 71aac00..dcfcfd7 100644
Binary files a/templates/similarproduct/rid-user-set-event/index.html.gz and b/templates/similarproduct/rid-user-set-event/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/train-with-rate-event/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/train-with-rate-event/index.html.gz b/templates/similarproduct/train-with-rate-event/index.html.gz
index eecbc43..bd70cc3 100644
Binary files a/templates/similarproduct/train-with-rate-event/index.html.gz and b/templates/similarproduct/train-with-rate-event/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/vanilla/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/vanilla/dase/index.html.gz b/templates/vanilla/dase/index.html.gz
index 2e5f2de..6560a31 100644
Binary files a/templates/vanilla/dase/index.html.gz and b/templates/vanilla/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/vanilla/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/vanilla/quickstart/index.html b/templates/vanilla/quickstart/index.html
index 1eae301..183c918 100644
--- a/templates/vanilla/quickstart/index.html
+++ b/templates/vanilla/quickstart/index.html
@@ -54,17 +54,17 @@ Your system is all ready to go.
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. The engine accepts JSON query with the field 'q': <code>{ "q" : "foo" }</code>. A prefix is added to the query data and return as PredictedResult.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-b87f1f5e-c546-40b6-ae95-add68b4ca5a4">REST API</a></li> <li data-lang="python"><a href="#tab-9a8280c7-320e-4a
db-99b9-bc27b7f4c52f">Python SDK</a></li> <li data-lang="php"><a href="#tab-cf295d58-723c-489e-b5ac-30bd591933a0">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-5922a72d-b843-423a-97c8-d2b7bcfe396b">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-c008c9d9-6f5b-409c-b762-288d417915ac">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-b87f1f5e-c546-40b6-ae95-add68b4ca5a4"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. The engine accepts JSON query with the field 'q': <code>{ "q" : "foo" }</code>. A prefix is added to the query data and return as PredictedResult.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2cac9b58-fab5-4c60-8211-1765e142eec4">REST API</a></li> <li data-lang="python"><a href="#tab-860d17a2-a055-48
ca-a6c3-d019b125e98d">Python SDK</a></li> <li data-lang="php"><a href="#tab-87ee79fb-2bf9-43ca-b7a7-fbba82f1adba">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-bb97923b-1d9e-40b4-97cb-e00b2fde69b0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-636b2fa5-59b6-4370-9d1b-d18543332ea7">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2cac9b58-fab5-4c60-8211-1765e142eec4"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "q": "foo" }'</span> http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-9a8280c7-320e-4adb-99b9-bc27b7f4c52f"> <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-860d17a2-a055-48ca-a6c3-d019b125e98d"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span> <span class="s">"q"</span><span class="p">:</span> <span class="s">"foo"</span> <span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-cf295d58-723c-489e-b5ac-30bd591933a0"> <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-87ee79fb-2bf9-43ca-b7a7-fbba82f1adba"> <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
@@ -83,7 +83,7 @@ Your system is all ready to go.
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-5922a72d-b843-423a-97c8-d2b7bcfe396b"> <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-bb97923b-1d9e-40b4-97cb-e00b2fde69b0"> <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
@@ -96,7 +96,7 @@ Your system is all ready to go.
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'q'</span> <span class="o">=></span> <span class="s1">'foo'</span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-c008c9d9-6f5b-409c-b762-288d417915ac"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-636b2fa5-59b6-4370-9d1b-d18543332ea7"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/vanilla/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/vanilla/quickstart/index.html.gz b/templates/vanilla/quickstart/index.html.gz
index fceacba..07517fc 100644
Binary files a/templates/vanilla/quickstart/index.html.gz and b/templates/vanilla/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/tryit/index.html.gz
----------------------------------------------------------------------
diff --git a/tryit/index.html.gz b/tryit/index.html.gz
index 4229bc5..e0b3f68 100644
Binary files a/tryit/index.html.gz and b/tryit/index.html.gz differ
[3/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/javaecommercerecommendation/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/javaecommercerecommendation/quickstart/index.html b/templates/javaecommercerecommendation/quickstart/index.html
index 436829d..b1d217a 100644
--- a/templates/javaecommercerecommendation/quickstart/index.html
+++ b/templates/javaecommercerecommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: <strong>user</strong> and <strong>item</strong>; events <strong>view</strong> and <strong>buy</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view and buy an item. The specical <strong>constraint</strong> entiy with entityId <strong>unavailableItems</strong> defines a list of unavailable items and is taken into account in realtime during serving.</p><p>In summary, this template requires '$set' user event, '$set' item event, user-view-item events, user-buy-item event and '$set' constraint event.</p><div class="alert-message info"><p>This template can easily be customized to consider other user-to-it
em events.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this
event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2789f975-6127-4f9c-b4cd-948765aae2b0">REST API</a></li> <li data-lang="python"><a href="#tab-c63d32bd-c29c-4b8d-aa46-efb07c9f1436">Python SDK</a></li> <li data-lang="php"><a href="#tab-3ed1b33e-60d3-4ce2-a77a-0795db8aeabb">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-8c0c6f2b-8215-4e8e-85c7-41e1e7015127">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-d0f20cd4-b71e-4b92-a4c2-20dda58bb1a5">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2789f975-6127-4f9c-b4cd-948765aae2b0"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: <strong>user</strong> and <strong>item</strong>; events <strong>view</strong> and <strong>buy</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view and buy an item. The specical <strong>constraint</strong> entiy with entityId <strong>unavailableItems</strong> defines a list of unavailable items and is taken into account in realtime during serving.</p><p>In summary, this template requires '$set' user event, '$set' item event, user-view-item events, user-buy-item event and '$set' constraint event.</p><div class="alert-message info"><p>This template can easily be customized to consider other user-to-it
em events.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this
event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a776b919-bb94-434e-9b06-9087a9f67a6d">REST API</a></li> <li data-lang="python"><a href="#tab-c6aaf475-7d8b-4a8b-993b-05e9ee3e8139">Python SDK</a></li> <li data-lang="php"><a href="#tab-8545aeff-f9fd-467c-ab12-8da97fc1d32e">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-8d16219f-7386-4643-89c4-c751a7e23c74">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-9205fbb2-e197-458b-ae15-50738d2ba005">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a776b919-bb94-434e-9b06-9087a9f67a6d"> <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
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-c63d32bd-c29c-4b8d-aa46-efb07c9f1436"> <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-c6aaf475-7d8b-4a8b-993b-05e9ee3e8139"> <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
@@ -78,7 +78,7 @@ Your system is all ready to go.
<span class="n">entity_type</span><span class="o">=</span><span class="s">"user"</span><span class="p">,</span>
<span class="n">entity_id</span><span class="o">=<</span><span class="n">USER_ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-3ed1b33e-60d3-4ce2-a77a-0795db8aeabb"> <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-8545aeff-f9fd-467c-ab12-8da97fc1d32e"> <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
@@ -119,7 +119,7 @@ Your system is all ready to go.
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'categories'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<CATEGORY_1>'</span><span class="p">,</span> <span class="s1">'<CATEGORY_2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-8c0c6f2b-8215-4e8e-85c7-41e1e7015127"> <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-8d16219f-7386-4643-89c4-c751a7e23c74"> <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
@@ -136,7 +136,7 @@ Your system is all ready to go.
<span class="s1">'user'</span><span class="p">,</span>
<span class="o"><</span><span class="no">USER</span> <span class="no">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-d0f20cd4-b71e-4b92-a4c2-20dda58bb1a5"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-9205fbb2-e197-458b-ae15-50738d2ba005"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -161,7 +161,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityType</span><span class="o">(</span><span class="s">"user"</span><span class="o">)</span>
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">USER_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">userEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-0de7e0b8-7927-4cd6-b720-6b8bf20fcea1">REST API</a></li> <li data-lang="python"><a href="#tab-1145f1ec-bfb8-45ff-bf73-92e6836978e2">Python SDK</a></li> <li data-lang="php"><a href="#tab-2ab52a24-5054-4594-a462-aa0de211725d">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-37a625ec-6cb5-4963-8812-0c39d64fb084">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7e22c8df-978a-4c8b-a8e4-1241ddce5dbe">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-0de7e0
b8-7927-4cd6-b720-6b8bf20fcea1"> <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> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9db9ddde-136e-45ab-8ecf-dc0f7ef61eab">REST API</a></li> <li data-lang="python"><a href="#tab-04a03dae-e253-4762-8ff5-1cbca02d5c1b">Python SDK</a></li> <li data-lang="php"><a href="#tab-17000c69-648f-48ae-b7c4-f27472b67604">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-16f7d6de-e2e1-4ad2-b839-048027a7c8df">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-2eca4834-1481-4407-9ebc-18d61181f64a">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9db9dd
de-136e-45ab-8ecf-dc0f7ef61eab"> <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
@@ -182,7 +182,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-1145f1ec-bfb8-45ff-bf73-92e6836978e2"> <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-04a03dae-e253-4762-8ff5-1cbca02d5c1b"> <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
@@ -201,7 +201,7 @@ Your system is all ready to go.
<span class="s">"categories"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"<CATEGORY_1>"</span><span class="p">,</span> <span class="s">"<CATEGORY_2>"</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-2ab52a24-5054-4594-a462-aa0de211725d"> <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-17000c69-648f-48ae-b7c4-f27472b67604"> <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
@@ -218,7 +218,7 @@ Your system is all ready to go.
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'categories'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<CATEGORY_1>'</span><span class="p">,</span> <span class="s1">'<CATEGORY_2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-37a625ec-6cb5-4963-8812-0c39d64fb084"> <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-16f7d6de-e2e1-4ad2-b839-048027a7c8df"> <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
@@ -235,7 +235,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7e22c8df-978a-4c8b-a8e4-1241ddce5dbe"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-2eca4834-1481-4407-9ebc-18d61181f64a"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -248,7 +248,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>)</span>
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"categories"</span><span class="o">,</span> <span class="n">ImmutableList</span><span class="o">.</span><span class="na">of</span><span class="o">(</span><span class="s">"<CATEGORY_1>"</span><span class="o">,</span> <span class="s">"<CATEGORY_2>"</span><span class="o">));</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">itemEvent</span><span class="o">)</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>The properties of the <code>user</code> and <code>item</code> can be set, unset, or delete by special events <strong>$set</strong>, <strong>$unset</strong> and <strong>$delete</strong>. Please refer to <a href="/datacollection/eventapi/#note-about-properties">Event API</a> for more details of using these events.</p><p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-65bfd4e0-fbb2-48b4-a651-eb0474d09352">REST API</a></li> <li data-lang="python"><a href="#tab-5dfd11da-0f75-4389-aa38-7145d1486276">Python SDK</a></li> <li data-lang="php"><a href="#tab-d138977e-f4d1-4582-8e4d-7a891c9fc682">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-a7268156-88f7-4556-800a-97f506
e0121b">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-d7631130-5364-4f43-84cb-55ac95f5b8b0">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-65bfd4e0-fbb2-48b4-a651-eb0474d09352"> <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> <p>The properties of the <code>user</code> and <code>item</code> can be set, unset, or delete by special events <strong>$set</strong>, <strong>$unset</strong> and <strong>$delete</strong>. Please refer to <a href="/datacollection/eventapi/#note-about-properties">Event API</a> for more details of using these events.</p><p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a98b54c6-e29f-4703-974b-e4113326d527">REST API</a></li> <li data-lang="python"><a href="#tab-1b340ff6-6753-485d-82c2-c4e628c3948f">Python SDK</a></li> <li data-lang="php"><a href="#tab-8463a7c5-4879-4ec5-bf4a-c473fcbecff5">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-fec2936d-d2f9-4ab0-be3d-b67672
e17c9e">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-769e05ce-8265-4d20-95ff-35a78ed3e1cd">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a98b54c6-e29f-4703-974b-e4113326d527"> <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
@@ -267,7 +267,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-5dfd11da-0f75-4389-aa38-7145d1486276"> <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-1b340ff6-6753-485d-82c2-c4e628c3948f"> <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
@@ -284,7 +284,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-d138977e-f4d1-4582-8e4d-7a891c9fc682"> <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-8463a7c5-4879-4ec5-bf4a-c473fcbecff5"> <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
@@ -303,7 +303,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-a7268156-88f7-4556-800a-97f506e0121b"> <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-fec2936d-d2f9-4ab0-be3d-b67672e17c9e"> <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
@@ -322,7 +322,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-d7631130-5364-4f43-84cb-55ac95f5b8b0"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-769e05ce-8265-4d20-95ff-35a78ed3e1cd"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -337,7 +337,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">targetEntityType</span><span class="o">(</span><span class="s">"item"</span><span class="o">)</span>
<span class="o">.</span><span class="na">targetEntityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">viewEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When the user "u0" buy item "i0" on time <code>2014-11-10T13:00:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-bf1751e2-34b8-4222-aebc-f6f07ec27462">REST API</a></li> <li data-lang="python"><a href="#tab-e5502ddd-09a0-42cc-bf88-439a2ec757b6">Python SDK</a></li> <li data-lang="php"><a href="#tab-61dface5-be95-43ff-aea1-15fb90bdb003">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-13f584d2-2ccc-4b8e-b985-ffdf1e0b4821">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-ad15daa3-0853-45ba-be4a-c1d649ac9336">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-bf1751e2-34b8-4222-aebc-f6f07ec27462"> <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> <p>When the user "u0" buy item "i0" on time <code>2014-11-10T13:00:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-068517e4-66c4-45fc-995e-9c176dca4041">REST API</a></li> <li data-lang="python"><a href="#tab-e1c3f9c0-f168-4c80-892e-c84ca50a935a">Python SDK</a></li> <li data-lang="php"><a href="#tab-374da91f-80f8-4090-a0d3-47b695f7342a">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-f0f3d038-f7d0-4713-bf61-c004982f4765">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-5f2e12da-7e49-4e80-8ceb-ff3e4efd2c11">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-068517e4-66c4-45fc-995e-9c176dca4041"> <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
@@ -356,7 +356,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T13:00:00.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-e5502ddd-09a0-42cc-bf88-439a2ec757b6"> <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-e1c3f9c0-f168-4c80-892e-c84ca50a935a"> <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
@@ -373,7 +373,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-61dface5-be95-43ff-aea1-15fb90bdb003"> <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-374da91f-80f8-4090-a0d3-47b695f7342a"> <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
@@ -392,7 +392,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-13f584d2-2ccc-4b8e-b985-ffdf1e0b4821"> <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-f0f3d038-f7d0-4713-bf61-c004982f4765"> <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
@@ -409,7 +409,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-ad15daa3-0853-45ba-be4a-c1d649ac9336"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-5f2e12da-7e49-4e80-8ceb-ff3e4efd2c11"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -490,19 +490,19 @@ User u10 buys item i40
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To recommend 4 items to user ID "u1". You send this JSON <code>{ "userEntityId": "u1", "number": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li da
ta-lang="json"><a href="#tab-0ec61f4b-3feb-42bd-b71b-0c48db87933a">REST API</a></li> <li data-lang="python"><a href="#tab-bcdd56e1-9777-4153-853e-4e901df8fe14">Python SDK</a></li> <li data-lang="php"><a href="#tab-670b7f8c-4803-4ff9-9179-259ab65e4abc">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e54540d9-72be-4c38-b039-86511d5e0ae2">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-c02bbc67-3923-4169-b40f-c2e1f048d450">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-0ec61f4b-3feb-42bd-b71b-0c48db87933a"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To recommend 4 items to user ID "u1". You send this JSON <code>{ "userEntityId": "u1", "number": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li da
ta-lang="json"><a href="#tab-dac7821b-ee63-4edc-a4f1-a7ddcd35b394">REST API</a></li> <li data-lang="python"><a href="#tab-3ac71ae7-dd3b-4d10-b46a-de2aaa089457">Python SDK</a></li> <li data-lang="php"><a href="#tab-1decefdf-19e0-40e3-aafa-cdcae90a4fac">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-5bb034ff-f88a-4c7a-b4f3-b0eefbaabdd5">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-4cb21435-54bc-40ab-a553-335d0455968f">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-dac7821b-ee63-4edc-a4f1-a7ddcd35b394"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "userEntityId": "u1", "number": 4 }'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-bcdd56e1-9777-4153-853e-4e901df8fe14"> <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-3ac71ae7-dd3b-4d10-b46a-de2aaa089457"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span><span class="s">"userEntityId"</span><span class="p">:</span> <span class="s">"u1"</span><span class="p">,</span> <span class="s">"number"</span><span class="p">:</span> <span class="mi">4</span><span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-670b7f8c-4803-4ff9-9179-259ab65e4abc"> <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-1decefdf-19e0-40e3-aafa-cdcae90a4fac"> <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
@@ -521,7 +521,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e54540d9-72be-4c38-b039-86511d5e0ae2"> <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-5bb034ff-f88a-4c7a-b4f3-b0eefbaabdd5"> <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
@@ -534,7 +534,7 @@ http://localhost:8000/queries.json
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'userEntityId'</span> <span class="o">=></span> <span class="s1">'i1'</span><span class="p">,</span> <span class="s1">'number'</span> <span class="o">=></span> <span class="mi">4</span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-c02bbc67-3923-4169-b40f-c2e1f048d450"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-4cb21435-54bc-40ab-a553-335d0455968f"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -578,7 +578,7 @@ http://localhost:8000/queries.json
<span class="o">{</span><span class="s2">"itemEntityId"</span>:<span class="s2">"i3"</span>,<span class="s2">"score"</span>:0.003007015026561692<span class="o">}</span>
<span class="o">]</span>
<span class="o">}</span>
-</pre></td></tr></tbody></table> </div> <p><em>MyECommerceRecommendation</em> is now running.</p> <div class="alert-message info"><p>To update the model periodically with new data, simply set up a cron job to call <code>pio train</code> and <code>pio deploy</code>. The engine will continue to serve prediction results during the re-train process. After the training is completed, <code>pio deploy</code> will automatically shutdown the existing engine server and bring up a new process on the same port.</p></div><div class="alert-message info"><p><strong>Note that if you import a <em>large</em> data set</strong> and the training seems to be taking forever or getting stuck, it's likely that there is not enough executor memory. It's recommended to setup a Spark standalone cluster, you'll need to specify more driver and executor memory when training with a large data set. Please see <a href="/resources/faq/#engine-training">FAQ here</a> for instructions.</p></div> <h2 id='setti
ng-constraint-"unavailableitems"' class='header-anchors'>Setting constraint "unavailableItems"</h2><p>Now let's send an item constraint "unavailableItems" (replace accessKey with your Access Key):</p><div class="alert-message note"><p>You can also use SDK to send this event as described in the SDK sample above.</p></div><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a34055f2-b713-45c5-8ee1-ae39fe4ca5f3">REST API</a></li> <li data-lang="python"><a href="#tab-bdc0cde8-11c4-41df-93cc-3abdd99cecd5">Python SDK</a></li> <li data-lang="php"><a href="#tab-1f989d16-30fd-4e52-9fe0-8faf89dd77ea">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-244823f8-1388-4c33-8a99-2b4b0aab211e">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-1ce71d1e-e19b-4552-afc5-025380cd2f2f">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a34055f2-b713-45c5-8ee1-ae39fe4ca5f3"> <div class="highlight shell"> <table style="borde
r-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
+</pre></td></tr></tbody></table> </div> <p><em>MyECommerceRecommendation</em> is now running.</p> <div class="alert-message info"><p>To update the model periodically with new data, simply set up a cron job to call <code>pio train</code> and <code>pio deploy</code>. The engine will continue to serve prediction results during the re-train process. After the training is completed, <code>pio deploy</code> will automatically shutdown the existing engine server and bring up a new process on the same port.</p></div><div class="alert-message info"><p><strong>Note that if you import a <em>large</em> data set</strong> and the training seems to be taking forever or getting stuck, it's likely that there is not enough executor memory. It's recommended to setup a Spark standalone cluster, you'll need to specify more driver and executor memory when training with a large data set. Please see <a href="/resources/faq/#engine-training">FAQ here</a> for instructions.</p></div> <h2 id='setti
ng-constraint-"unavailableitems"' class='header-anchors'>Setting constraint "unavailableItems"</h2><p>Now let's send an item constraint "unavailableItems" (replace accessKey with your Access Key):</p><div class="alert-message note"><p>You can also use SDK to send this event as described in the SDK sample above.</p></div><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-ae94aeaa-d45b-4136-8f91-d5efe0b8d0d9">REST API</a></li> <li data-lang="python"><a href="#tab-e4db65db-0c8a-4a9b-98d4-cb8804ae3a54">Python SDK</a></li> <li data-lang="php"><a href="#tab-8fe11325-69d5-40ed-a02d-90f4d1348f26">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-cb2a3818-a408-4afe-82c7-3de2e95933dc">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-fb9ced8b-d8a8-48a3-9c68-118f7822c6dd">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-ae94aeaa-d45b-4136-8f91-d5efe0b8d0d9"> <div class="highlight shell"> <table style="borde
r-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -599,7 +599,7 @@ http://localhost:8000/queries.json
}
"eventTime" : "2015-02-17T02:11:21.934Z"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-bdc0cde8-11c4-41df-93cc-3abdd99cecd5"> <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-e4db65db-0c8a-4a9b-98d4-cb8804ae3a54"> <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
@@ -618,7 +618,7 @@ http://localhost:8000/queries.json
<span class="s">"items"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"<ITEM ID1>"</span><span class="p">,</span> <span class="s">"<ITEM ID2>"</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-1f989d16-30fd-4e52-9fe0-8faf89dd77ea"> <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-8fe11325-69d5-40ed-a02d-90f4d1348f26"> <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
@@ -635,7 +635,7 @@ http://localhost:8000/queries.json
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'items'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<ITEM ID1>'</span><span class="p">,</span> <span class="s1">'<ITEM ID2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-244823f8-1388-4c33-8a99-2b4b0aab211e"> <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-cb2a3818-a408-4afe-82c7-3de2e95933dc"> <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
@@ -650,7 +650,7 @@ http://localhost:8000/queries.json
<span class="s1">'properties'</span> <span class="o">=></span> <span class="p">{</span> <span class="s1">'items'</span> <span class="o">=></span> <span class="p">[</span><span class="s1">'<ITEM ID1>'</span><span class="p">,</span> <span class="s1">'<ITEM ID2>'</span><span class="p">]</span> <span class="p">}</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-1ce71d1e-e19b-4552-afc5-025380cd2f2f"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-fb9ced8b-d8a8-48a3-9c68-118f7822c6dd"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/javaecommercerecommendation/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/javaecommercerecommendation/quickstart/index.html.gz b/templates/javaecommercerecommendation/quickstart/index.html.gz
index a497815..e47e836 100644
Binary files a/templates/javaecommercerecommendation/quickstart/index.html.gz and b/templates/javaecommercerecommendation/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/leadscoring/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/leadscoring/dase/index.html.gz b/templates/leadscoring/dase/index.html.gz
index 58df015..1c66c62 100644
Binary files a/templates/leadscoring/dase/index.html.gz and b/templates/leadscoring/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/leadscoring/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/leadscoring/quickstart/index.html b/templates/leadscoring/quickstart/index.html
index 0314b84..d81bff3 100644
--- a/templates/leadscoring/quickstart/index.html
+++ b/templates/leadscoring/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, Lead Scoring Engine Template supports the following entities: <strong>user</strong>, <strong>page</strong>, and <strong>item</strong>. An user views a page, and buys an item.</p><p>Note that a "sessionId" property is required to indicate these events happen in the same session. In the first visit of a user, you should specify the optional "referrral ID" and "browser" information. These are used to determine where the user comes from and the browser information.</p><p>In summary, this template requires user-view-page event and user-buy-item events with the session ID, referrer ID and browser properties.</p> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a
href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when an user with ID u0 views a URL page "example.com/page0" on time <code>2014-11-02T09:39:45.618-08:00</code>, with session ID "akdj230fj8ass" (current time will be used if eventTime is not specified) you can send the event to Event Server. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-7c0615a5-6b5d-40c5-
a212-5237826fab06">REST API</a></li> <li data-lang="python"><a href="#tab-7e07f44f-7dcd-47e3-b9e1-27c1360be73b">Python SDK</a></li> <li data-lang="php"><a href="#tab-96c2a76f-551f-465e-ae85-c45ba43e4ced">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-869c89da-06bf-47e3-86e6-9fa3cccdd162">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-56ae8d70-8720-424a-ad9c-32787a95896f">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-7c0615a5-6b5d-40c5-a212-5237826fab06"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, Lead Scoring Engine Template supports the following entities: <strong>user</strong>, <strong>page</strong>, and <strong>item</strong>. An user views a page, and buys an item.</p><p>Note that a "sessionId" property is required to indicate these events happen in the same session. In the first visit of a user, you should specify the optional "referrral ID" and "browser" information. These are used to determine where the user comes from and the browser information.</p><p>In summary, this template requires user-view-page event and user-buy-item events with the session ID, referrer ID and browser properties.</p> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a
href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when an user with ID u0 views a URL page "example.com/page0" on time <code>2014-11-02T09:39:45.618-08:00</code>, with session ID "akdj230fj8ass" (current time will be used if eventTime is not specified) you can send the event to Event Server. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-6b6bced7-d2d7-4f07-
8fca-b40e29121383">REST API</a></li> <li data-lang="python"><a href="#tab-5bdd7d04-7275-4002-9079-209ea2d08143">Python SDK</a></li> <li data-lang="php"><a href="#tab-d224c420-b429-427d-9a3e-504d555bab1e">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-2321ef15-cba5-4855-ac30-e1d20d3d773e">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-bcfbadc3-2f67-4217-a9fd-65b623d91c76">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-6b6bced7-d2d7-4f07-8fca-b40e29121383"> <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
@@ -61,7 +61,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-7e07f44f-7dcd-47e3-b9e1-27c1360be73b"> <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-5bdd7d04-7275-4002-9079-209ea2d08143"> <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
@@ -106,7 +106,7 @@ Your system is all ready to go.
<span class="s">"browser"</span><span class="p">:</span> <span class="o"><</span><span class="n">BROWSER</span><span class="o">></span> <span class="c"># optinal. but should specify this if you have this information when user views the landing page</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-96c2a76f-551f-465e-ae85-c45ba43e4ced"> <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-d224c420-b429-427d-9a3e-504d555bab1e"> <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
@@ -145,7 +145,7 @@ Your system is all ready to go.
<span class="p">)</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-869c89da-06bf-47e3-86e6-9fa3cccdd162"> <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-2321ef15-cba5-4855-ac30-e1d20d3d773e"> <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
@@ -178,7 +178,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-56ae8d70-8720-424a-ad9c-32787a95896f"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-bcfbadc3-2f67-4217-a9fd-65b623d91c76"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -213,7 +213,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"referrerId"</span><span class="o">,</span> <span class="s">"<REFERRER ID>"</span><span class="o">)</span>
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"browser"</span><span class="o">,</span> <span class="s">"<BROWSER>"</span><span class="o">);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">viewEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>In the same browing session "akdj230fj8ass", the user with ID u0 buys an item i0 on time <code>2014-11-02T09:42:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send the following buy event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2f0915fe-9f79-408e-871f-7e204e468d93">REST API</a></li> <li data-lang="python"><a href="#tab-8cbecd03-2bdd-4816-8fd3-672277a3f605">Python SDK</a></li> <li data-lang="php"><a href="#tab-42c3d31b-52d2-4866-9ca9-6b28517b0e60">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e8716976-4dfe-4994-afe1-cf7e85b470af">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-f12741da-84dc-4633-923d-c7e9e334087c">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2f0915fe-9f79-408e-871f-7e204e468d93"> <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> <p>In the same browing session "akdj230fj8ass", the user with ID u0 buys an item i0 on time <code>2014-11-02T09:42:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send the following buy event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-ff9e1572-c2fd-4c92-8787-49a6e4b081d9">REST API</a></li> <li data-lang="python"><a href="#tab-442fe8e4-100a-46f8-b17f-edff4b9f9aa1">Python SDK</a></li> <li data-lang="php"><a href="#tab-2b9df797-ee75-4fd3-b4b2-954f9ff33790">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-1e71be95-b8fc-407c-9525-c79c684bc326">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-1fea73d7-eb4d-4622-8a1e-6a4863c3f75d">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-ff9e1572-c2fd-4c92-8787-49a6e4b081d9"> <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
@@ -238,7 +238,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:42:00.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-8cbecd03-2bdd-4816-8fd3-672277a3f605"> <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-442fe8e4-100a-46f8-b17f-edff4b9f9aa1"> <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
@@ -261,7 +261,7 @@ Your system is all ready to go.
<span class="s">"sessionId"</span><span class="p">:</span> <span class="o"><</span><span class="n">SESSION</span> <span class="n">ID</span><span class="o">></span><span class="p">,</span> <span class="c"># required</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-42c3d31b-52d2-4866-9ca9-6b28517b0e60"> <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-2b9df797-ee75-4fd3-b4b2-954f9ff33790"> <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
@@ -288,7 +288,7 @@ Your system is all ready to go.
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e8716976-4dfe-4994-afe1-cf7e85b470af"> <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-1e71be95-b8fc-407c-9525-c79c684bc326"> <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
@@ -311,7 +311,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-f12741da-84dc-4633-923d-c7e9e334087c"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-1fea73d7-eb4d-4622-8a1e-6a4863c3f75d"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -371,7 +371,7 @@ User u5 buys item i5
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve the results. When a user lands on your page "example.com/page9", with referrer "referrer10.com" and browser "Firefox", you can get the predicted lead score by sending this JSON '{ "landingPageId" : "example.com/page9", "referrerId" : "referrer10.com", "browser": "Firefox" }' to the deployed engine. The engine will return a JSON with the score.</p><p>Simply send a query by making a HTTP request or through the <code>EngineClient
</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2cbf6ffb-afa8-4674-a1f9-efda48621d5f">REST API</a></li> <li data-lang="python"><a href="#tab-d30f6d9b-1651-41cd-940e-bfbf6325f800">Python SDK</a></li> <li data-lang="php"><a href="#tab-2ee0e8de-81c0-44b6-bb39-9b45a2a058c4">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-59607139-0847-4c5e-8c44-57a8290f8a9d">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-17aec110-7203-47cb-ba1e-350eb1a898bc">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2cbf6ffb-afa8-4674-a1f9-efda48621d5f"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve the results. When a user lands on your page "example.com/page9", with referrer "referrer10.com" and browser "Firefox", you can get the predicted lead score by sending this JSON '{ "landingPageId" : "example.com/page9", "referrerId" : "referrer10.com", "browser": "Firefox" }' to the deployed engine. The engine will return a JSON with the score.</p><p>Simply send a query by making a HTTP request or through the <code>EngineClient
</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-44cd1e31-95fa-46ea-aa18-38d4d6eca282">REST API</a></li> <li data-lang="python"><a href="#tab-573ee641-9583-4799-8d69-dafc76a9cd1f">Python SDK</a></li> <li data-lang="php"><a href="#tab-5e4fedfd-aeff-43ec-bca6-e5652eb0b72e">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-f7a9767f-abf6-4c22-8cb3-eb73442bddce">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-88570a0c-5eb3-4da3-b94c-20b0e6e5f06d">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-44cd1e31-95fa-46ea-aa18-38d4d6eca282"> <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
@@ -384,7 +384,7 @@ User u5 buys item i5
"browser": "Firefox" }'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-d30f6d9b-1651-41cd-940e-bfbf6325f800"> <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-573ee641-9583-4799-8d69-dafc76a9cd1f"> <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
@@ -397,7 +397,7 @@ http://localhost:8000/queries.json
<span class="s">"referrerId"</span> <span class="p">:</span> <span class="s">"referrer10.com"</span><span class="p">,</span>
<span class="s">"browser"</span><span class="p">:</span> <span class="s">"Firefox"</span>
<span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-2ee0e8de-81c0-44b6-bb39-9b45a2a058c4"> <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-5e4fedfd-aeff-43ec-bca6-e5652eb0b72e"> <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
@@ -426,7 +426,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-59607139-0847-4c5e-8c44-57a8290f8a9d"> <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-f7a9767f-abf6-4c22-8cb3-eb73442bddce"> <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
@@ -447,7 +447,7 @@ http://localhost:8000/queries.json
<span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-17aec110-7203-47cb-ba1e-350eb1a898bc"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-88570a0c-5eb3-4da3-b94c-20b0e6e5f06d"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/leadscoring/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/leadscoring/quickstart/index.html.gz b/templates/leadscoring/quickstart/index.html.gz
index 6037062..5fd3b12 100644
Binary files a/templates/leadscoring/quickstart/index.html.gz and b/templates/leadscoring/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/productranking/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/productranking/dase/index.html.gz b/templates/productranking/dase/index.html.gz
index e8da934..2a847d9 100644
Binary files a/templates/productranking/dase/index.html.gz and b/templates/productranking/dase/index.html.gz differ
[6/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/github/index.html.gz
----------------------------------------------------------------------
diff --git a/github/index.html.gz b/github/index.html.gz
index 66a61a3..f37f2fa 100644
Binary files a/github/index.html.gz and b/github/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/index.html.gz
----------------------------------------------------------------------
diff --git a/index.html.gz b/index.html.gz
index 184def3..f849dfd 100644
Binary files a/index.html.gz and b/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/config-datastore/index.html.gz
----------------------------------------------------------------------
diff --git a/install/config-datastore/index.html.gz b/install/config-datastore/index.html.gz
index b0335ca..67801e5 100644
Binary files a/install/config-datastore/index.html.gz and b/install/config-datastore/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/index.html.gz
----------------------------------------------------------------------
diff --git a/install/index.html.gz b/install/index.html.gz
index ed6224d..74bff06 100644
Binary files a/install/index.html.gz and b/install/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/install-linux/index.html.gz
----------------------------------------------------------------------
diff --git a/install/install-linux/index.html.gz b/install/install-linux/index.html.gz
index 4d0dc9b..e163e2a 100644
Binary files a/install/install-linux/index.html.gz and b/install/install-linux/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/install-sourcecode/index.html.gz
----------------------------------------------------------------------
diff --git a/install/install-sourcecode/index.html.gz b/install/install-sourcecode/index.html.gz
index e150cb3..b391e74 100644
Binary files a/install/install-sourcecode/index.html.gz and b/install/install-sourcecode/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/install-vagrant/index.html.gz
----------------------------------------------------------------------
diff --git a/install/install-vagrant/index.html.gz b/install/install-vagrant/index.html.gz
index 79b42d9..0e81c01 100644
Binary files a/install/install-vagrant/index.html.gz and b/install/install-vagrant/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/launch-aws/index.html.gz
----------------------------------------------------------------------
diff --git a/install/launch-aws/index.html.gz b/install/launch-aws/index.html.gz
index 7013f43..5f782eb 100644
Binary files a/install/launch-aws/index.html.gz and b/install/launch-aws/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/install/sdk/index.html.gz
----------------------------------------------------------------------
diff --git a/install/sdk/index.html.gz b/install/sdk/index.html.gz
index 7068ceb..ca9fd48 100644
Binary files a/install/sdk/index.html.gz and b/install/sdk/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/javascripts/application-a6acb1f5.js.gz
----------------------------------------------------------------------
diff --git a/javascripts/application-a6acb1f5.js.gz b/javascripts/application-a6acb1f5.js.gz
index c2934a2..ed70b3c 100644
Binary files a/javascripts/application-a6acb1f5.js.gz and b/javascripts/application-a6acb1f5.js.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/javascripts/tryit-e18ad27c.js.gz
----------------------------------------------------------------------
diff --git a/javascripts/tryit-e18ad27c.js.gz b/javascripts/tryit-e18ad27c.js.gz
index 9036419..74359e8 100644
Binary files a/javascripts/tryit-e18ad27c.js.gz and b/javascripts/tryit-e18ad27c.js.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/machinelearning/dimensionalityreduction/index.html.gz
----------------------------------------------------------------------
diff --git a/machinelearning/dimensionalityreduction/index.html.gz b/machinelearning/dimensionalityreduction/index.html.gz
index 901d0e1..66dee2b 100644
Binary files a/machinelearning/dimensionalityreduction/index.html.gz and b/machinelearning/dimensionalityreduction/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/machinelearning/modelingworkflow/index.html.gz
----------------------------------------------------------------------
diff --git a/machinelearning/modelingworkflow/index.html.gz b/machinelearning/modelingworkflow/index.html.gz
index 73b659b..96d0a6a 100644
Binary files a/machinelearning/modelingworkflow/index.html.gz and b/machinelearning/modelingworkflow/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/production/deploy-cloudformation/index.html.gz
----------------------------------------------------------------------
diff --git a/production/deploy-cloudformation/index.html.gz b/production/deploy-cloudformation/index.html.gz
index 9cb862b..bbcda27 100644
Binary files a/production/deploy-cloudformation/index.html.gz and b/production/deploy-cloudformation/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/resources/faq/index.html.gz
----------------------------------------------------------------------
diff --git a/resources/faq/index.html.gz b/resources/faq/index.html.gz
index 5c7f470..2de5e33 100644
Binary files a/resources/faq/index.html.gz and b/resources/faq/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/resources/glossary/index.html.gz
----------------------------------------------------------------------
diff --git a/resources/glossary/index.html.gz b/resources/glossary/index.html.gz
index f173d30..e9fe8ca 100644
Binary files a/resources/glossary/index.html.gz and b/resources/glossary/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/resources/intellij/index.html.gz
----------------------------------------------------------------------
diff --git a/resources/intellij/index.html.gz b/resources/intellij/index.html.gz
index 0cef0a3..0713487 100644
Binary files a/resources/intellij/index.html.gz and b/resources/intellij/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/resources/release/index.html.gz
----------------------------------------------------------------------
diff --git a/resources/release/index.html.gz b/resources/release/index.html.gz
index 6d5122c..3bce57d 100644
Binary files a/resources/release/index.html.gz and b/resources/release/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/resources/upgrade/index.html.gz
----------------------------------------------------------------------
diff --git a/resources/upgrade/index.html.gz b/resources/upgrade/index.html.gz
index cdfa4bd..424862f 100644
Binary files a/resources/upgrade/index.html.gz and b/resources/upgrade/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/index.html.gz b/samples/index.html.gz
index d8998e6..e15bdcd 100644
Binary files a/samples/index.html.gz and b/samples/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/languages/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/languages/index.html.gz b/samples/languages/index.html.gz
index f5f7db1..0469e7b 100644
Binary files a/samples/languages/index.html.gz and b/samples/languages/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-1/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-1/index.html.gz b/samples/level-1/index.html.gz
index 17c58ba..b4725c9 100644
Binary files a/samples/level-1/index.html.gz and b/samples/level-1/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-2-1/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-2-1/index.html.gz b/samples/level-2-1/index.html.gz
index 597a495..80d8bc9 100644
Binary files a/samples/level-2-1/index.html.gz and b/samples/level-2-1/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-2-2/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-2-2/index.html.gz b/samples/level-2-2/index.html.gz
index 4c475b6..8bf7319 100644
Binary files a/samples/level-2-2/index.html.gz and b/samples/level-2-2/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-2/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-2/index.html.gz b/samples/level-2/index.html.gz
index a23b721..ae952a6 100644
Binary files a/samples/level-2/index.html.gz and b/samples/level-2/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-3-1/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-3-1/index.html.gz b/samples/level-3-1/index.html.gz
index 8cdcce4..d36765c 100644
Binary files a/samples/level-3-1/index.html.gz and b/samples/level-3-1/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-3-2/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-3-2/index.html.gz b/samples/level-3-2/index.html.gz
index 466698a..c3a21e3 100644
Binary files a/samples/level-3-2/index.html.gz and b/samples/level-3-2/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-3/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-3/index.html.gz b/samples/level-3/index.html.gz
index 5be2531..b496ae5 100644
Binary files a/samples/level-3/index.html.gz and b/samples/level-3/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-4-1/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-4-1/index.html.gz b/samples/level-4-1/index.html.gz
index fef6d8b..9dea4f4 100644
Binary files a/samples/level-4-1/index.html.gz and b/samples/level-4-1/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-4-2/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-4-2/index.html.gz b/samples/level-4-2/index.html.gz
index a3d042f..1e389b2 100644
Binary files a/samples/level-4-2/index.html.gz and b/samples/level-4-2/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-4-3/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-4-3/index.html.gz b/samples/level-4-3/index.html.gz
index 62e7181..fdae124 100644
Binary files a/samples/level-4-3/index.html.gz and b/samples/level-4-3/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/level-4/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/level-4/index.html.gz b/samples/level-4/index.html.gz
index 3e97ac3..1901122 100644
Binary files a/samples/level-4/index.html.gz and b/samples/level-4/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/narrow/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/narrow/index.html.gz b/samples/narrow/index.html.gz
index de260cf..ff11e46 100644
Binary files a/samples/narrow/index.html.gz and b/samples/narrow/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/sizing/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/sizing/index.html.gz b/samples/sizing/index.html.gz
index 3f1d93c..8c5f309 100644
Binary files a/samples/sizing/index.html.gz and b/samples/sizing/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/tabs/index.html
----------------------------------------------------------------------
diff --git a/samples/tabs/index.html b/samples/tabs/index.html
index 017a483..3aba520 100644
--- a/samples/tabs/index.html
+++ b/samples/tabs/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><title>Tabs</title><meta charset="utf-8"/><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta class="swiftype" name="title" data-type="string" content="Tabs"/><link rel="canonical" href="https://predictionio.incubator.apache.org/samples/tabs/"/><link href="/images/favicon/normal-b330020a.png" rel="shortcut icon"/><link href="/images/favicon/apple-c0febcf2.png" rel="apple-touch-icon"/><link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/><link href="/stylesheets/application-eccfc6cb.css" rel="stylesheet" type="text/css"/><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML
_HTMLorMML"></script><script src="//use.typekit.net/pqo0itb.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script></head><body><div id="global"><header><div class="container" id="header-wrapper"><div class="row"><div class="col-sm-12"><div id="logo-wrapper"><span id="drawer-toggle"></span><a href="#"></a><a href="http://predictionio.incubator.apache.org/"><img alt="PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a><span>â„¢</span></div><div id="menu-wrapper"><div id="pill-wrapper"><a class="pill left" href="/gallery/template-gallery">TEMPLATES</a> <a class="pill right" href="//github.com/apache/incubator-predictionio/">OPEN SOURCE</a></div></div><img class="mobile-search-bar-toggler hidden-md hidden-lg" src="/images/icons/search-glass-704bd4ff.png"/></div></div></div></header><div id="search-bar-row-wrapper"><div class="container-fluid" id="search-bar-row"><div class="row"><div class="col-md-9 col-sm-11 col-xs-11"><div class="hidden-md hidden-lg
" id="mobile-page-heading-wrapper"><p>PredictionIO Docs</p><h4>Tabs</h4></div><h4 class="hidden-sm hidden-xs">PredictionIO Docs</h4></div><div class="col-md-3 col-sm-1 col-xs-1 hidden-md hidden-lg"><img id="left-menu-indicator" src="/images/icons/down-arrow-dfe9f7fe.png"/></div><div class="col-md-3 col-sm-12 col-xs-12 swiftype-wrapper"><div class="swiftype"><form class="search-form"><img class="search-box-toggler hidden-xs hidden-sm" src="/images/icons/search-glass-704bd4ff.png"/><div class="search-box"><img src="/images/icons/search-glass-704bd4ff.png"/><input type="text" id="st-search-input" class="st-search-input" placeholder="Search Doc..."/></div><img class="swiftype-row-hider hidden-md hidden-lg" src="/images/icons/drawer-toggle-active-fcbef12a.png"/></form></div></div><div class="mobile-left-menu-toggler hidden-md hidden-lg"></div></div></div></div><div id="page" class="container-fluid"><div class="row"><div id="left-menu-wrapper" class="col-md-3"><nav id="nav-main"><ul><li c
lass="level-1"><a class="expandible" href="/"><span>Apache PredictionIOâ„¢ (incubating) Documentation</span></a><ul><li class="level-2"><a class="final" href="/"><span>Welcome to Apache PredictionIO (incubating)</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Started</span></a><ul><li class="level-2"><a class="final" href="/start/"><span>A Quick Intro</span></a></li><li class="level-2"><a class="final" href="/install/"><span>Installing Apache PredictionIO (incubating)</span></a></li><li class="level-2"><a class="final" href="/start/download/"><span>Downloading an Engine Template</span></a></li><li class="level-2"><a class="final" href="/start/deploy/"><span>Deploying Your First Engine</span></a></li><li class="level-2"><a class="final" href="/start/customize/"><span>Customizing the Engine</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Integrating with Your App</span></a><ul><li class="level-2"><a class="fin
al" href="/appintegration/"><span>App Integration Overview</span></a></li><li class="level-2"><a class="expandible" href="/sdk/"><span>List of SDKs</span></a><ul><li class="level-3"><a class="final" href="/sdk/java/"><span>Java & Android SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/php/"><span>PHP SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/python/"><span>Python SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/ruby/"><span>Ruby SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/community/"><span>Community Powered SDKs</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Deploying an Engine</span></a><ul><li class="level-2"><a class="final" href="/deploy/"><span>Deploying as a Web Service</span></a></li><li class="level-2"><a class="final" href="/batchpredict/"><span>Batch Predictions</span></a></li><li class="level-2"><a class="final" href="/deploy/monitoring/"><span
>Monitoring Engine</span></a></li><li class="level-2"><a class="final" href="/deploy/engineparams/"><span>Setting Engine Parameters</span></a></li><li class="level-2"><a class="final" href="/deploy/enginevariants/"><span>Deploying Multiple Engine Variants</span></a></li><li class="level-2"><a class="final" href="/deploy/plugin/"><span>Engine Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Customizing an Engine</span></a><ul><li class="level-2"><a class="final" href="/customize/"><span>Learning DASE</span></a></li><li class="level-2"><a class="final" href="/customize/dase/"><span>Implement DASE</span></a></li><li class="level-2"><a class="final" href="/customize/troubleshooting/"><span>Troubleshooting Engine Development</span></a></li><li class="level-2"><a class="final" href="/api/current/#package"><span>Engine Scala APIs</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Collecting and Analyzing Data</sp
an></a><ul><li class="level-2"><a class="final" href="/datacollection/"><span>Event Server Overview</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventapi/"><span>Collecting Data with REST/SDKs</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventmodel/"><span>Events Modeling</span></a></li><li class="level-2"><a class="final" href="/datacollection/webhooks/"><span>Unifying Multichannel Data with Webhooks</span></a></li><li class="level-2"><a class="final" href="/datacollection/channel/"><span>Channel</span></a></li><li class="level-2"><a class="final" href="/datacollection/batchimport/"><span>Importing Data in Batch</span></a></li><li class="level-2"><a class="final" href="/datacollection/analytics/"><span>Using Analytics Tools</span></a></li><li class="level-2"><a class="final" href="/datacollection/plugin/"><span>Event Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Choosing an A
lgorithm(s)</span></a><ul><li class="level-2"><a class="final" href="/algorithm/"><span>Built-in Algorithm Libraries</span></a></li><li class="level-2"><a class="final" href="/algorithm/switch/"><span>Switching to Another Algorithm</span></a></li><li class="level-2"><a class="final" href="/algorithm/multiple/"><span>Combining Multiple Algorithms</span></a></li><li class="level-2"><a class="final" href="/algorithm/custom/"><span>Adding Your Own Algorithms</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>ML Tuning and Evaluation</span></a><ul><li class="level-2"><a class="final" href="/evaluation/"><span>Overview</span></a></li><li class="level-2"><a class="final" href="/evaluation/paramtuning/"><span>Hyperparameter Tuning</span></a></li><li class="level-2"><a class="final" href="/evaluation/evaluationdashboard/"><span>Evaluation Dashboard</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricchoose/"><span>Choosing Evaluation Met
rics</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricbuild/"><span>Building Evaluation Metrics</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>System Architecture</span></a><ul><li class="level-2"><a class="final" href="/system/"><span>Architecture Overview</span></a></li><li class="level-2"><a class="final" href="/system/anotherdatastore/"><span>Using Another Data Store</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>PredictionIO Official Templates</span></a><ul><li class="level-2"><a class="final" href="/templates/"><span>Intro</span></a></li><li class="level-2"><a class="expandible" href="#"><span>Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/recommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/tem
plates/recommendation/evaluation/"><span>Evaluation Explained</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/reading-custom-events/"><span>Read Custom Events</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-data-prep/"><span>Customize Data Preparator</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-serving/"><span>Customize Serving</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/training-with-implicit-preference/"><span>Train with Implicit Preference</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/blacklist-items/"><span>Filter Recommended Items by Blacklist in Query</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/batch-evaluator/"><span>Batch Pers
istable Evaluator</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>E-Commerce Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/adjust-score/"><span>Adjust Score</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Similar Product</span></a><ul><li class="level-3"><a class="final" href="/templates/similarproduct/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a
class="final" href="/templates/similarproduct/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/multi-events-multi-algos/"><span>Multiple Events and Multiple Algorithms</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/return-item-properties/"><span>Returns Item Properties</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/rid-user-set-event/"><span>Get Rid of Events for Users</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/recommended-user/"><span>Recommend Users</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Classification</span></a><ul><li class="level-3">
<a class="final" href="/templates/classification/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/classification/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/classification/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/classification/add-algorithm/"><span>Use Alternative Algorithm</span></a></li><li class="level-3"><a class="final" href="/templates/classification/reading-custom-properties/"><span>Read Custom Properties</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Engine Template Gallery</span></a><ul><li class="level-2"><a class="final" href="/gallery/template-gallery/"><span>Browse</span></a></li><li class="level-2"><a class="final" href="/community/submit-template/"><span>Submit your Engine as a Template</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Demo Tutorials
</span></a><ul><li class="level-2"><a class="final" href="/demo/tapster/"><span>Comics Recommendation Demo</span></a></li><li class="level-2"><a class="final" href="/demo/community/"><span>Community Contributed Demo</span></a></li><li class="level-2"><a class="final" href="/demo/textclassification/"><span>Text Classification Engine Tutorial</span></a></li></ul></li><li class="level-1"><a class="expandible" href="/community/"><span>Getting Involved</span></a><ul><li class="level-2"><a class="final" href="/community/contribute-code/"><span>Contribute Code</span></a></li><li class="level-2"><a class="final" href="/community/contribute-documentation/"><span>Contribute Documentation</span></a></li><li class="level-2"><a class="final" href="/community/contribute-sdk/"><span>Contribute a SDK</span></a></li><li class="level-2"><a class="final" href="/community/contribute-webhook/"><span>Contribute a Webhook</span></a></li><li class="level-2"><a class="final" href="/community/projects/"><spa
n>Community Projects</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Help</span></a><ul><li class="level-2"><a class="final" href="/resources/faq/"><span>FAQs</span></a></li><li class="level-2"><a class="final" href="/support/"><span>Support</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Resources</span></a><ul><li class="level-2"><a class="final" href="/cli/"><span>Command-line Interface</span></a></li><li class="level-2"><a class="final" href="/resources/release/"><span>Release Cadence</span></a></li><li class="level-2"><a class="final" href="/resources/intellij/"><span>Developing Engines with IntelliJ IDEA</span></a></li><li class="level-2"><a class="final" href="/resources/upgrade/"><span>Upgrade Instructions</span></a></li><li class="level-2"><a class="final" href="/resources/glossary/"><span>Glossary</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Apache Software Foun
dation</span></a><ul><li class="level-2"><a class="final" href="https://www.apache.org/"><span>Apache Homepage</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/licenses/"><span>License</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/sponsorship.html"><span>Sponsorship</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/thanks.html"><span>Thanks</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/security/"><span>Security</span></a></li></ul></li></ul></nav></div><div class="col-md-9 col-sm-12"><div class="content-header hidden-md hidden-lg"><div id="page-title"><h1>Tabs</h1></div></div><div id="table-of-content-wrapper"><h5>On this page</h5><aside id="table-of-contents"><ul> <li> <a href="#test-syncing">Test Syncing</a> </li> </ul> </aside><hr/><a id="edit-page-link" href="https://github.com/apache/incubator-predictionio/tree/livedoc/docs/m
anual/source/samples/tabs.html.md"><img src="/images/icons/edit-pencil-d6c1bb3d.png"/>Edit this page</a></div><div class="content-header hidden-sm hidden-xs"><div id="page-title"><h1>Tabs</h1></div></div><div class="content"> <p>This page is used to test the tabs plugin based on <a href="https://github.com/vdw/Tabslet">Tabslet</a>.</p><div class="tabs"> <ul class="control"> <li data-lang="ruby"><a href="#tab-f89430a8-3e53-4c72-88bc-511d17c23a75">Ruby</a></li> <li data-lang=""><a href="#tab-f573622c-200f-416e-8db4-ac9c5306d0d3">Plain</a></li> <li data-lang="html"><a href="#tab-6c621dc3-9b36-47ea-9817-2bfdcf776b2a">HTML</a></li> <li data-lang=""><a href="#tab-9e267896-5dd9-4c21-b354-ab6ab38807fd">Test</a></li> </ul> <div data-tab="Ruby" data-lang="ruby" id="tab-f89430a8-3e53-4c72-88bc-511d17c23a75"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
+<!DOCTYPE html><html><head><title>Tabs</title><meta charset="utf-8"/><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta class="swiftype" name="title" data-type="string" content="Tabs"/><link rel="canonical" href="https://predictionio.incubator.apache.org/samples/tabs/"/><link href="/images/favicon/normal-b330020a.png" rel="shortcut icon"/><link href="/images/favicon/apple-c0febcf2.png" rel="apple-touch-icon"/><link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/><link href="/stylesheets/application-eccfc6cb.css" rel="stylesheet" type="text/css"/><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML
_HTMLorMML"></script><script src="//use.typekit.net/pqo0itb.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script></head><body><div id="global"><header><div class="container" id="header-wrapper"><div class="row"><div class="col-sm-12"><div id="logo-wrapper"><span id="drawer-toggle"></span><a href="#"></a><a href="http://predictionio.incubator.apache.org/"><img alt="PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a><span>â„¢</span></div><div id="menu-wrapper"><div id="pill-wrapper"><a class="pill left" href="/gallery/template-gallery">TEMPLATES</a> <a class="pill right" href="//github.com/apache/incubator-predictionio/">OPEN SOURCE</a></div></div><img class="mobile-search-bar-toggler hidden-md hidden-lg" src="/images/icons/search-glass-704bd4ff.png"/></div></div></div></header><div id="search-bar-row-wrapper"><div class="container-fluid" id="search-bar-row"><div class="row"><div class="col-md-9 col-sm-11 col-xs-11"><div class="hidden-md hidden-lg
" id="mobile-page-heading-wrapper"><p>PredictionIO Docs</p><h4>Tabs</h4></div><h4 class="hidden-sm hidden-xs">PredictionIO Docs</h4></div><div class="col-md-3 col-sm-1 col-xs-1 hidden-md hidden-lg"><img id="left-menu-indicator" src="/images/icons/down-arrow-dfe9f7fe.png"/></div><div class="col-md-3 col-sm-12 col-xs-12 swiftype-wrapper"><div class="swiftype"><form class="search-form"><img class="search-box-toggler hidden-xs hidden-sm" src="/images/icons/search-glass-704bd4ff.png"/><div class="search-box"><img src="/images/icons/search-glass-704bd4ff.png"/><input type="text" id="st-search-input" class="st-search-input" placeholder="Search Doc..."/></div><img class="swiftype-row-hider hidden-md hidden-lg" src="/images/icons/drawer-toggle-active-fcbef12a.png"/></form></div></div><div class="mobile-left-menu-toggler hidden-md hidden-lg"></div></div></div></div><div id="page" class="container-fluid"><div class="row"><div id="left-menu-wrapper" class="col-md-3"><nav id="nav-main"><ul><li c
lass="level-1"><a class="expandible" href="/"><span>Apache PredictionIOâ„¢ (incubating) Documentation</span></a><ul><li class="level-2"><a class="final" href="/"><span>Welcome to Apache PredictionIO (incubating)</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Started</span></a><ul><li class="level-2"><a class="final" href="/start/"><span>A Quick Intro</span></a></li><li class="level-2"><a class="final" href="/install/"><span>Installing Apache PredictionIO (incubating)</span></a></li><li class="level-2"><a class="final" href="/start/download/"><span>Downloading an Engine Template</span></a></li><li class="level-2"><a class="final" href="/start/deploy/"><span>Deploying Your First Engine</span></a></li><li class="level-2"><a class="final" href="/start/customize/"><span>Customizing the Engine</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Integrating with Your App</span></a><ul><li class="level-2"><a class="fin
al" href="/appintegration/"><span>App Integration Overview</span></a></li><li class="level-2"><a class="expandible" href="/sdk/"><span>List of SDKs</span></a><ul><li class="level-3"><a class="final" href="/sdk/java/"><span>Java & Android SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/php/"><span>PHP SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/python/"><span>Python SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/ruby/"><span>Ruby SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/community/"><span>Community Powered SDKs</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Deploying an Engine</span></a><ul><li class="level-2"><a class="final" href="/deploy/"><span>Deploying as a Web Service</span></a></li><li class="level-2"><a class="final" href="/batchpredict/"><span>Batch Predictions</span></a></li><li class="level-2"><a class="final" href="/deploy/monitoring/"><span
>Monitoring Engine</span></a></li><li class="level-2"><a class="final" href="/deploy/engineparams/"><span>Setting Engine Parameters</span></a></li><li class="level-2"><a class="final" href="/deploy/enginevariants/"><span>Deploying Multiple Engine Variants</span></a></li><li class="level-2"><a class="final" href="/deploy/plugin/"><span>Engine Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Customizing an Engine</span></a><ul><li class="level-2"><a class="final" href="/customize/"><span>Learning DASE</span></a></li><li class="level-2"><a class="final" href="/customize/dase/"><span>Implement DASE</span></a></li><li class="level-2"><a class="final" href="/customize/troubleshooting/"><span>Troubleshooting Engine Development</span></a></li><li class="level-2"><a class="final" href="/api/current/#package"><span>Engine Scala APIs</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Collecting and Analyzing Data</sp
an></a><ul><li class="level-2"><a class="final" href="/datacollection/"><span>Event Server Overview</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventapi/"><span>Collecting Data with REST/SDKs</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventmodel/"><span>Events Modeling</span></a></li><li class="level-2"><a class="final" href="/datacollection/webhooks/"><span>Unifying Multichannel Data with Webhooks</span></a></li><li class="level-2"><a class="final" href="/datacollection/channel/"><span>Channel</span></a></li><li class="level-2"><a class="final" href="/datacollection/batchimport/"><span>Importing Data in Batch</span></a></li><li class="level-2"><a class="final" href="/datacollection/analytics/"><span>Using Analytics Tools</span></a></li><li class="level-2"><a class="final" href="/datacollection/plugin/"><span>Event Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Choosing an A
lgorithm(s)</span></a><ul><li class="level-2"><a class="final" href="/algorithm/"><span>Built-in Algorithm Libraries</span></a></li><li class="level-2"><a class="final" href="/algorithm/switch/"><span>Switching to Another Algorithm</span></a></li><li class="level-2"><a class="final" href="/algorithm/multiple/"><span>Combining Multiple Algorithms</span></a></li><li class="level-2"><a class="final" href="/algorithm/custom/"><span>Adding Your Own Algorithms</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>ML Tuning and Evaluation</span></a><ul><li class="level-2"><a class="final" href="/evaluation/"><span>Overview</span></a></li><li class="level-2"><a class="final" href="/evaluation/paramtuning/"><span>Hyperparameter Tuning</span></a></li><li class="level-2"><a class="final" href="/evaluation/evaluationdashboard/"><span>Evaluation Dashboard</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricchoose/"><span>Choosing Evaluation Met
rics</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricbuild/"><span>Building Evaluation Metrics</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>System Architecture</span></a><ul><li class="level-2"><a class="final" href="/system/"><span>Architecture Overview</span></a></li><li class="level-2"><a class="final" href="/system/anotherdatastore/"><span>Using Another Data Store</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>PredictionIO Official Templates</span></a><ul><li class="level-2"><a class="final" href="/templates/"><span>Intro</span></a></li><li class="level-2"><a class="expandible" href="#"><span>Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/recommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/tem
plates/recommendation/evaluation/"><span>Evaluation Explained</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/reading-custom-events/"><span>Read Custom Events</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-data-prep/"><span>Customize Data Preparator</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-serving/"><span>Customize Serving</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/training-with-implicit-preference/"><span>Train with Implicit Preference</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/blacklist-items/"><span>Filter Recommended Items by Blacklist in Query</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/batch-evaluator/"><span>Batch Pers
istable Evaluator</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>E-Commerce Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/adjust-score/"><span>Adjust Score</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Similar Product</span></a><ul><li class="level-3"><a class="final" href="/templates/similarproduct/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a
class="final" href="/templates/similarproduct/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/multi-events-multi-algos/"><span>Multiple Events and Multiple Algorithms</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/return-item-properties/"><span>Returns Item Properties</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/rid-user-set-event/"><span>Get Rid of Events for Users</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/recommended-user/"><span>Recommend Users</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Classification</span></a><ul><li class="level-3">
<a class="final" href="/templates/classification/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/classification/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/classification/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/classification/add-algorithm/"><span>Use Alternative Algorithm</span></a></li><li class="level-3"><a class="final" href="/templates/classification/reading-custom-properties/"><span>Read Custom Properties</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Engine Template Gallery</span></a><ul><li class="level-2"><a class="final" href="/gallery/template-gallery/"><span>Browse</span></a></li><li class="level-2"><a class="final" href="/community/submit-template/"><span>Submit your Engine as a Template</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Demo Tutorials
</span></a><ul><li class="level-2"><a class="final" href="/demo/tapster/"><span>Comics Recommendation Demo</span></a></li><li class="level-2"><a class="final" href="/demo/community/"><span>Community Contributed Demo</span></a></li><li class="level-2"><a class="final" href="/demo/textclassification/"><span>Text Classification Engine Tutorial</span></a></li></ul></li><li class="level-1"><a class="expandible" href="/community/"><span>Getting Involved</span></a><ul><li class="level-2"><a class="final" href="/community/contribute-code/"><span>Contribute Code</span></a></li><li class="level-2"><a class="final" href="/community/contribute-documentation/"><span>Contribute Documentation</span></a></li><li class="level-2"><a class="final" href="/community/contribute-sdk/"><span>Contribute a SDK</span></a></li><li class="level-2"><a class="final" href="/community/contribute-webhook/"><span>Contribute a Webhook</span></a></li><li class="level-2"><a class="final" href="/community/projects/"><spa
n>Community Projects</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Help</span></a><ul><li class="level-2"><a class="final" href="/resources/faq/"><span>FAQs</span></a></li><li class="level-2"><a class="final" href="/support/"><span>Support</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Resources</span></a><ul><li class="level-2"><a class="final" href="/cli/"><span>Command-line Interface</span></a></li><li class="level-2"><a class="final" href="/resources/release/"><span>Release Cadence</span></a></li><li class="level-2"><a class="final" href="/resources/intellij/"><span>Developing Engines with IntelliJ IDEA</span></a></li><li class="level-2"><a class="final" href="/resources/upgrade/"><span>Upgrade Instructions</span></a></li><li class="level-2"><a class="final" href="/resources/glossary/"><span>Glossary</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Apache Software Foun
dation</span></a><ul><li class="level-2"><a class="final" href="https://www.apache.org/"><span>Apache Homepage</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/licenses/"><span>License</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/sponsorship.html"><span>Sponsorship</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/thanks.html"><span>Thanks</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/security/"><span>Security</span></a></li></ul></li></ul></nav></div><div class="col-md-9 col-sm-12"><div class="content-header hidden-md hidden-lg"><div id="page-title"><h1>Tabs</h1></div></div><div id="table-of-content-wrapper"><h5>On this page</h5><aside id="table-of-contents"><ul> <li> <a href="#test-syncing">Test Syncing</a> </li> </ul> </aside><hr/><a id="edit-page-link" href="https://github.com/apache/incubator-predictionio/tree/livedoc/docs/m
anual/source/samples/tabs.html.md"><img src="/images/icons/edit-pencil-d6c1bb3d.png"/>Edit this page</a></div><div class="content-header hidden-sm hidden-xs"><div id="page-title"><h1>Tabs</h1></div></div><div class="content"> <p>This page is used to test the tabs plugin based on <a href="https://github.com/vdw/Tabslet">Tabslet</a>.</p><div class="tabs"> <ul class="control"> <li data-lang="ruby"><a href="#tab-3211707f-6af0-4c62-bad3-70d55fdc9300">Ruby</a></li> <li data-lang=""><a href="#tab-9d526453-7e43-46f8-a82b-93a5e3f81eed">Plain</a></li> <li data-lang="html"><a href="#tab-bebe6bdf-84c1-4cc7-92e4-39db2c235ac7">HTML</a></li> <li data-lang=""><a href="#tab-babe5933-a046-4096-b27f-f292fad5d2c7">Test</a></li> </ul> <div data-tab="Ruby" data-lang="ruby" id="tab-3211707f-6af0-4c62-bad3-70d55fdc9300"> <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
@@ -9,11 +9,11 @@
<span class="s1">'bar'</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Plain" id="tab-f573622c-200f-416e-8db4-ac9c5306d0d3"> This is a test of **markdown** inside a tab! <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="Plain" id="tab-9d526453-7e43-46f8-a82b-93a5e3f81eed"> This is a test of **markdown** inside a tab! <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2</pre></td> <td class="code"><pre>// This tab does not have the data-lang attribute <span class="nb">set</span>!
<span class="gp">$ </span><span class="nb">cd </span>path/to/your/file
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="HTML" data-lang="html" id="tab-6c621dc3-9b36-47ea-9817-2bfdcf776b2a"> <div class="highlight html"> <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="nt"><p></span>Yes you can still use HTML in code blocks!<span class="nt"></p></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Test" id="tab-9e267896-5dd9-4c21-b354-ab6ab38807fd"> <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="HTML" data-lang="html" id="tab-bebe6bdf-84c1-4cc7-92e4-39db2c235ac7"> <div class="highlight html"> <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="nt"><p></span>Yes you can still use HTML in code blocks!<span class="nt"></p></span>
+</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Test" id="tab-babe5933-a046-4096-b27f-f292fad5d2c7"> <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
@@ -28,7 +28,7 @@ Test</span> <span class="na">5 =</span><span class="err">>
</span><span class="s">Test</span> <span class="na">6</span> <span class="err"><=</span>
<span class="na">Test</span> <span class="na">7</span> <span class="err"><</span><span class="nt">></span>
<span class="nt"><p><b></span>Test<span class="nt"></b></p></span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <h2 id='test-syncing' class='header-anchors'>Test Syncing</h2><p>Here we show a similar set of tabs to test language syncing:</p><div class="tabs"> <ul class="control"> <li data-lang="ruby"><a href="#tab-7329f5a5-b7fa-4346-b672-a7d2feba95eb">Ruby</a></li> <li data-lang=""><a href="#tab-4f134a78-45a8-4f93-8fa7-4b57b6f8ba36">Plain</a></li> <li data-lang="html"><a href="#tab-6b68550e-2de3-4291-98fd-0b7ffa73b2ef">HTML</a></li> <li data-lang="python"><a href="#tab-b65d38c2-c5a9-41ec-8adf-b910da813cea">Python</a></li> </ul> <div data-tab="Ruby" data-lang="ruby" id="tab-7329f5a5-b7fa-4346-b672-a7d2feba95eb"> <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> <h2 id='test-syncing' class='header-anchors'>Test Syncing</h2><p>Here we show a similar set of tabs to test language syncing:</p><div class="tabs"> <ul class="control"> <li data-lang="ruby"><a href="#tab-7ad67f67-b66d-49ef-8ae5-a53b78ff5259">Ruby</a></li> <li data-lang=""><a href="#tab-1897880b-b59b-4249-a7ed-b0368e0778c4">Plain</a></li> <li data-lang="html"><a href="#tab-f1f1fb71-f299-4b43-9ece-3146fc99ddab">HTML</a></li> <li data-lang="python"><a href="#tab-f8885d50-26ad-4761-b677-aadf48479a7d">Python</a></li> </ul> <div data-tab="Ruby" data-lang="ruby" id="tab-7ad67f67-b66d-49ef-8ae5-a53b78ff5259"> <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
@@ -39,12 +39,12 @@ Test</span> <span class="na">5 =</span><span class="err">>
<span class="s1">'bar'</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Plain" id="tab-4f134a78-45a8-4f93-8fa7-4b57b6f8ba36"> This is a test of **markdown** inside a tab! <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="Plain" id="tab-1897880b-b59b-4249-a7ed-b0368e0778c4"> This is a test of **markdown** inside a tab! <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2</pre></td> <td class="code"><pre>// This tab does not have the data-lang attribute <span class="nb">set</span>!
<span class="gp">$ </span><span class="nb">cd </span>path/to/your/file
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="HTML" data-lang="html" id="tab-6b68550e-2de3-4291-98fd-0b7ffa73b2ef"> <p>This HTML is <b>hard coded</b>.</p> </div> <div data-tab="Python" data-lang="python" id="tab-b65d38c2-c5a9-41ec-8adf-b910da813cea"> <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> <td class="code"><pre><span class="c"># The other group does not have a Python tab.</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <div class="tabs"> <ul class="control"> <li data-lang="java"><a href="#tab-b2f645bb-d6fe-4a48-b4e2-7289d9365248">Java</a></li> <li data-lang="html"><a href="#tab-f55fd352-d44d-4a0b-890d-f7c6431d26dd">HTML</a></li> </ul> <div data-tab="Java" data-lang="java" id="tab-b2f645bb-d6fe-4a48-b4e2-7289d9365248"> <div class="highlight plaintext"> <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>// Java code..
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="HTML" data-lang="html" id="tab-f55fd352-d44d-4a0b-890d-f7c6431d26dd"> This includes **bold** with Markdown. </div> </div> </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:user-subscribe@predictionio.incubator.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.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:dev-subscribe@predictionio.incubator.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 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(){
+</pre></td> </tr></tbody></table> </div> </div> <div data-tab="HTML" data-lang="html" id="tab-f1f1fb71-f299-4b43-9ece-3146fc99ddab"> <p>This HTML is <b>hard coded</b>.</p> </div> <div data-tab="Python" data-lang="python" id="tab-f8885d50-26ad-4761-b677-aadf48479a7d"> <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> <td class="code"><pre><span class="c"># The other group does not have a Python tab.</span>
+</pre></td> </tr></tbody></table> </div> </div> </div> <div class="tabs"> <ul class="control"> <li data-lang="java"><a href="#tab-5c225055-366d-40ea-b823-97b3a43d0aca">Java</a></li> <li data-lang="html"><a href="#tab-76afdd29-6bb2-492f-af03-39998f8e27fb">HTML</a></li> </ul> <div data-tab="Java" data-lang="java" id="tab-5c225055-366d-40ea-b823-97b3a43d0aca"> <div class="highlight plaintext"> <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>// Java code..
+</pre></td> </tr></tbody></table> </div> </div> <div data-tab="HTML" data-lang="html" id="tab-76afdd29-6bb2-492f-af03-39998f8e27fb"> This includes **bold** with Markdown. </div> </div> </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:user-subscribe@predictionio.incubator.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.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:dev-subscribe@predictionio.incubator.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 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);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v1/st.js','_st');
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/samples/tabs/index.html.gz
----------------------------------------------------------------------
diff --git a/samples/tabs/index.html.gz b/samples/tabs/index.html.gz
index fa35a15..763ab04 100644
Binary files a/samples/tabs/index.html.gz and b/samples/tabs/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/community/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/community/index.html.gz b/sdk/community/index.html.gz
index b196021..1f06759 100644
Binary files a/sdk/community/index.html.gz and b/sdk/community/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/index.html.gz b/sdk/index.html.gz
index 5b298c3..b0bef80 100644
Binary files a/sdk/index.html.gz and b/sdk/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/java/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/java/index.html.gz b/sdk/java/index.html.gz
index c5e5ea0..960b105 100644
Binary files a/sdk/java/index.html.gz and b/sdk/java/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/php/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/php/index.html.gz b/sdk/php/index.html.gz
index 30eed9c..453fa59 100644
Binary files a/sdk/php/index.html.gz and b/sdk/php/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/python/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/python/index.html.gz b/sdk/python/index.html.gz
index 727e4ce..241454a 100644
Binary files a/sdk/python/index.html.gz and b/sdk/python/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sdk/ruby/index.html.gz
----------------------------------------------------------------------
diff --git a/sdk/ruby/index.html.gz b/sdk/ruby/index.html.gz
index 6f7e23a..e59cf66 100644
Binary files a/sdk/ruby/index.html.gz and b/sdk/ruby/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/search/index.html.gz
----------------------------------------------------------------------
diff --git a/search/index.html.gz b/search/index.html.gz
index 64ad593..d119d04 100644
Binary files a/search/index.html.gz and b/search/index.html.gz differ
[7/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/gallery/template-gallery/index.html
----------------------------------------------------------------------
diff --git a/gallery/template-gallery/index.html b/gallery/template-gallery/index.html
index c4fcb1f..9fd0305 100644
--- a/gallery/template-gallery/index.html
+++ b/gallery/template-gallery/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><title>Engine Template Gallery</title><meta charset="utf-8"/><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta class="swiftype" name="title" data-type="string" content="Engine Template Gallery"/><link rel="canonical" href="https://predictionio.incubator.apache.org/gallery/template-gallery/"/><link href="/images/favicon/normal-b330020a.png" rel="shortcut icon"/><link href="/images/favicon/apple-c0febcf2.png" rel="apple-touch-icon"/><link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/><link href="/stylesheets/application-eccfc6cb.css" rel="stylesheet" type="text/css"/><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdn.mathja
x.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><script src="//use.typekit.net/pqo0itb.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script></head><body><div id="global"><header><div class="container" id="header-wrapper"><div class="row"><div class="col-sm-12"><div id="logo-wrapper"><span id="drawer-toggle"></span><a href="#"></a><a href="http://predictionio.incubator.apache.org/"><img alt="PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a><span>â„¢</span></div><div id="menu-wrapper"><div id="pill-wrapper"><a class="pill left" href="/gallery/template-gallery">TEMPLATES</a> <a class="pill right" href="//github.com/apache/incubator-predictionio/">OPEN SOURCE</a></div></div><img class="mobile-search-bar-toggler hidden-md hidden-lg" src="/images/icons/search-glass-704bd4ff.png"/></div></div></div></header><div id="search-bar-row-wrapper"><div class="container-fluid" id="search-bar-row"><div class="row"><div class="col-md-9 co
l-sm-11 col-xs-11"><div class="hidden-md hidden-lg" id="mobile-page-heading-wrapper"><p>PredictionIO Docs</p><h4>Browse</h4></div><h4 class="hidden-sm hidden-xs">PredictionIO Docs</h4></div><div class="col-md-3 col-sm-1 col-xs-1 hidden-md hidden-lg"><img id="left-menu-indicator" src="/images/icons/down-arrow-dfe9f7fe.png"/></div><div class="col-md-3 col-sm-12 col-xs-12 swiftype-wrapper"><div class="swiftype"><form class="search-form"><img class="search-box-toggler hidden-xs hidden-sm" src="/images/icons/search-glass-704bd4ff.png"/><div class="search-box"><img src="/images/icons/search-glass-704bd4ff.png"/><input type="text" id="st-search-input" class="st-search-input" placeholder="Search Doc..."/></div><img class="swiftype-row-hider hidden-md hidden-lg" src="/images/icons/drawer-toggle-active-fcbef12a.png"/></form></div></div><div class="mobile-left-menu-toggler hidden-md hidden-lg"></div></div></div></div><div id="page" class="container-fluid"><div class="row"><div id="left-menu-wr
apper" class="col-md-3"><nav id="nav-main"><ul><li class="level-1"><a class="expandible" href="/"><span>Apache PredictionIOâ„¢ (incubating) Documentation</span></a><ul><li class="level-2"><a class="final" href="/"><span>Welcome to Apache PredictionIO (incubating)</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Started</span></a><ul><li class="level-2"><a class="final" href="/start/"><span>A Quick Intro</span></a></li><li class="level-2"><a class="final" href="/install/"><span>Installing Apache PredictionIO (incubating)</span></a></li><li class="level-2"><a class="final" href="/start/download/"><span>Downloading an Engine Template</span></a></li><li class="level-2"><a class="final" href="/start/deploy/"><span>Deploying Your First Engine</span></a></li><li class="level-2"><a class="final" href="/start/customize/"><span>Customizing the Engine</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Integrating with Your
App</span></a><ul><li class="level-2"><a class="final" href="/appintegration/"><span>App Integration Overview</span></a></li><li class="level-2"><a class="expandible" href="/sdk/"><span>List of SDKs</span></a><ul><li class="level-3"><a class="final" href="/sdk/java/"><span>Java & Android SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/php/"><span>PHP SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/python/"><span>Python SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/ruby/"><span>Ruby SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/community/"><span>Community Powered SDKs</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Deploying an Engine</span></a><ul><li class="level-2"><a class="final" href="/deploy/"><span>Deploying as a Web Service</span></a></li><li class="level-2"><a class="final" href="/batchpredict/"><span>Batch Predictions</span></a></li><li class="level-
2"><a class="final" href="/deploy/monitoring/"><span>Monitoring Engine</span></a></li><li class="level-2"><a class="final" href="/deploy/engineparams/"><span>Setting Engine Parameters</span></a></li><li class="level-2"><a class="final" href="/deploy/enginevariants/"><span>Deploying Multiple Engine Variants</span></a></li><li class="level-2"><a class="final" href="/deploy/plugin/"><span>Engine Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Customizing an Engine</span></a><ul><li class="level-2"><a class="final" href="/customize/"><span>Learning DASE</span></a></li><li class="level-2"><a class="final" href="/customize/dase/"><span>Implement DASE</span></a></li><li class="level-2"><a class="final" href="/customize/troubleshooting/"><span>Troubleshooting Engine Development</span></a></li><li class="level-2"><a class="final" href="/api/current/#package"><span>Engine Scala APIs</span></a></li></ul></li><li class="level-1"><a class="expandib
le" href="#"><span>Collecting and Analyzing Data</span></a><ul><li class="level-2"><a class="final" href="/datacollection/"><span>Event Server Overview</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventapi/"><span>Collecting Data with REST/SDKs</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventmodel/"><span>Events Modeling</span></a></li><li class="level-2"><a class="final" href="/datacollection/webhooks/"><span>Unifying Multichannel Data with Webhooks</span></a></li><li class="level-2"><a class="final" href="/datacollection/channel/"><span>Channel</span></a></li><li class="level-2"><a class="final" href="/datacollection/batchimport/"><span>Importing Data in Batch</span></a></li><li class="level-2"><a class="final" href="/datacollection/analytics/"><span>Using Analytics Tools</span></a></li><li class="level-2"><a class="final" href="/datacollection/plugin/"><span>Event Server Plugin</span></a></li></ul></li><li class="level-1
"><a class="expandible" href="#"><span>Choosing an Algorithm(s)</span></a><ul><li class="level-2"><a class="final" href="/algorithm/"><span>Built-in Algorithm Libraries</span></a></li><li class="level-2"><a class="final" href="/algorithm/switch/"><span>Switching to Another Algorithm</span></a></li><li class="level-2"><a class="final" href="/algorithm/multiple/"><span>Combining Multiple Algorithms</span></a></li><li class="level-2"><a class="final" href="/algorithm/custom/"><span>Adding Your Own Algorithms</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>ML Tuning and Evaluation</span></a><ul><li class="level-2"><a class="final" href="/evaluation/"><span>Overview</span></a></li><li class="level-2"><a class="final" href="/evaluation/paramtuning/"><span>Hyperparameter Tuning</span></a></li><li class="level-2"><a class="final" href="/evaluation/evaluationdashboard/"><span>Evaluation Dashboard</span></a></li><li class="level-2"><a class="final" href="/eva
luation/metricchoose/"><span>Choosing Evaluation Metrics</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricbuild/"><span>Building Evaluation Metrics</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>System Architecture</span></a><ul><li class="level-2"><a class="final" href="/system/"><span>Architecture Overview</span></a></li><li class="level-2"><a class="final" href="/system/anotherdatastore/"><span>Using Another Data Store</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>PredictionIO Official Templates</span></a><ul><li class="level-2"><a class="final" href="/templates/"><span>Intro</span></a></li><li class="level-2"><a class="expandible" href="#"><span>Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/recommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/dase/"><span>DASE</span></a>
</li><li class="level-3"><a class="final" href="/templates/recommendation/evaluation/"><span>Evaluation Explained</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/reading-custom-events/"><span>Read Custom Events</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-data-prep/"><span>Customize Data Preparator</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-serving/"><span>Customize Serving</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/training-with-implicit-preference/"><span>Train with Implicit Preference</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/blacklist-items/"><span>Filter Recommended Items by Blacklist in Query</span></a></li><li class="level-3"><a class="final" href="/templat
es/recommendation/batch-evaluator/"><span>Batch Persistable Evaluator</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>E-Commerce Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/adjust-score/"><span>Adjust Score</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Similar Product</span></a><ul><li class="level-3"><a class="final" href="/templates/similarproduct/quickstart/"><spa
n>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/multi-events-multi-algos/"><span>Multiple Events and Multiple Algorithms</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/return-item-properties/"><span>Returns Item Properties</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/rid-user-set-event/"><span>Get Rid of Events for Users</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/recommended-user/"><span>Recommend Users</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><sp
an>Classification</span></a><ul><li class="level-3"><a class="final" href="/templates/classification/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/classification/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/classification/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/classification/add-algorithm/"><span>Use Alternative Algorithm</span></a></li><li class="level-3"><a class="final" href="/templates/classification/reading-custom-properties/"><span>Read Custom Properties</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Engine Template Gallery</span></a><ul><li class="level-2"><a class="final active" href="/gallery/template-gallery/"><span>Browse</span></a></li><li class="level-2"><a class="final" href="/community/submit-template/"><span>Submit your Engine as a Template</span></a></li></ul></li><li class="l
evel-1"><a class="expandible" href="#"><span>Demo Tutorials</span></a><ul><li class="level-2"><a class="final" href="/demo/tapster/"><span>Comics Recommendation Demo</span></a></li><li class="level-2"><a class="final" href="/demo/community/"><span>Community Contributed Demo</span></a></li><li class="level-2"><a class="final" href="/demo/textclassification/"><span>Text Classification Engine Tutorial</span></a></li></ul></li><li class="level-1"><a class="expandible" href="/community/"><span>Getting Involved</span></a><ul><li class="level-2"><a class="final" href="/community/contribute-code/"><span>Contribute Code</span></a></li><li class="level-2"><a class="final" href="/community/contribute-documentation/"><span>Contribute Documentation</span></a></li><li class="level-2"><a class="final" href="/community/contribute-sdk/"><span>Contribute a SDK</span></a></li><li class="level-2"><a class="final" href="/community/contribute-webhook/"><span>Contribute a Webhook</span></a></li><li class=
"level-2"><a class="final" href="/community/projects/"><span>Community Projects</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Help</span></a><ul><li class="level-2"><a class="final" href="/resources/faq/"><span>FAQs</span></a></li><li class="level-2"><a class="final" href="/support/"><span>Support</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Resources</span></a><ul><li class="level-2"><a class="final" href="/cli/"><span>Command-line Interface</span></a></li><li class="level-2"><a class="final" href="/resources/release/"><span>Release Cadence</span></a></li><li class="level-2"><a class="final" href="/resources/intellij/"><span>Developing Engines with IntelliJ IDEA</span></a></li><li class="level-2"><a class="final" href="/resources/upgrade/"><span>Upgrade Instructions</span></a></li><li class="level-2"><a class="final" href="/resources/glossary/"><span>Glossary</span></a></li></ul></li><li class="level-1
"><a class="expandible" href="#"><span>Apache Software Foundation</span></a><ul><li class="level-2"><a class="final" href="https://www.apache.org/"><span>Apache Homepage</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/licenses/"><span>License</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/sponsorship.html"><span>Sponsorship</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/foundation/thanks.html"><span>Thanks</span></a></li><li class="level-2"><a class="final" href="https://www.apache.org/security/"><span>Security</span></a></li></ul></li></ul></nav></div><div class="col-md-9 col-sm-12"><div class="content-header hidden-md hidden-lg"><div id="breadcrumbs" class="hidden-sm hidden xs"><ul><li><a href="#">Engine Template Gallery</a><span class="spacer">></span></li><li><span class="last">Browse</span></li></ul></div><div id="page-title"><h1>Engine Template Gallery</h1></div><
/div><div id="table-of-content-wrapper"><a id="edit-page-link" href="https://github.com/apache/incubator-predictionio/tree/livedoc/docs/manual/source/gallery/template-gallery.html.md"><img src="/images/icons/edit-pencil-d6c1bb3d.png"/>Edit this page</a></div><div class="content-header hidden-sm hidden-xs"><div id="breadcrumbs" class="hidden-sm hidden xs"><ul><li><a href="#">Engine Template Gallery</a><span class="spacer">></span></li><li><span class="last">Browse</span></li></ul></div><div id="page-title"><h1>Engine Template Gallery</h1></div></div><div class="content"><p>Pick a tab for the type of template you are looking for. Some still need to be ported (a simple process) to Apache PIO and these are marked. Also see each Template description for special support instructions.</p><div class="tabs"> <ul class="control"> <li data-lang=""><a href="#tab-d8fba4aa-1fff-4740-8c56-ac29dda782d7">Recommenders</a></li> <li data-lang=""><a href="#tab-354b071a-3bca-4eca-9b0f-a308960970b1">Cl
assification</a></li> <li data-lang=""><a href="#tab-c5c557f5-2eb3-4ced-b65f-52fb97ac81bd">Regression</a></li> <li data-lang=""><a href="#tab-438f4423-8436-4899-b139-e4041b981e24">NLP</a></li> <li data-lang=""><a href="#tab-253777c0-7b6b-4bbc-a747-d88977c976f4">Clustering</a></li> <li data-lang=""><a href="#tab-c5abbc5e-f18f-45e4-bc90-07d69afbbd90">Similarity</a></li> <li data-lang=""><a href="#tab-23e1ba84-d767-40f0-8fa4-1e7ff9011667">Other</a></li> </ul> <div data-tab="Recommenders" id="tab-d8fba4aa-1fff-4740-8c56-ac29dda782d7"> <h3><a href="https://github.com/actionml/universal-recommender">The Universal Recommender</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=actionml&repo=universal-recommender&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Use for: </p> <ul class="tab-list"> <li class="tab-list-element">Personalized recommendations—user-based</li> <li class="tab-list-element">Similar it
ems—item-based</li> <li class="tab-list-element">Viewed this bought that—item-based cross-action</li> <li class="tab-list-element">Popular Items and User-defined ranking</li> <li class="tab-list-element">Item-set recommendations for complimentarty purchases or shopping carts—item-set-based</li> <li class="tab-list-element">Hybrid collaborative filtering and content based recommendations—limited content-based</li> <li class-tab-list-element>Business rules</li> </ul> <p>The name "Universal" refers to the use of this template in virtually any case that calls for recommendations - ecommerce, news, videos, virtually anywhere user behavioral data is known. This recommender uses the new <a href="http://mahout.apache.org/users/algorithms/intro-cooccurrence-spark.html">Cross-Occurrence (CCO) algorithm</a> to auto-correlate different user actions (clickstream data), profile data, contextual information (location, device), and some content types to make better recommendations. It also
implements flexible filters and boosts for implementing business rules.</p> <p>Support: <a href="https://groups.google.com/forum/#!forum/actionml-user">The Universal Recommender user group</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-recommender">Recommendation</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-recommender&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> An engine template is an almost-complete implementation of an engine. PredictionIO's Recommendation Engine Template has integrated Apache Spark MLlib's
Collaborative Filtering algorithm by default. You can customize it easily to fit your specific needs. </p> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache PredictionIO mailing lists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-ecom-recommender">E-Commerce Recommendation</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-ecom-recommender&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template provides personalized recommendation for e-commerce applications with the following fe
atures by default: </p> <ul class="tab-list"> <li class="tab-list-element">Exclude out-of-stock items</li> <li class="tab-list-element">Provide recommendation to new users who sign up after the model is trained</li> <li class="tab-list-element">Recommend unseen items only (configurable)</li> <li class="tab-list-element">Recommend popular items if no information about the user is available (added in template version v0.4.0)</li> </ul> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache PredictionIO mailing lists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-similar-product">Similar Product</a></h3> <iframe src="https://gh
btns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-similar-product&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template recommends products that are "similar" to the input product(s). Similarity is not defined by user or item attributes but by users' previous actions. By default, it uses 'view' action such that product A and B are considered similar if most users who view A also view B. The template can be customized to support other action types such as buy, rate, like..etc </p> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache PredictionIO mailing lists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</
td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-java-ecom-recommender">E-Commerce Recommendation (Java)</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-java-ecom-recommender&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template provides personalized recommendation for e-commerce applications with the following features by default: </p> <ul class="tab-list"> <li class="tab-list-element">Exclude out-of-stock items</li> <li class="tab-list-element">Provide recommendation to new users who sign up after the model is trained</li> <li class="tab-list-element">Recommend unseen items only (configurable)</li> <li class="tab-list-element">Recommend popular items if no information about the user is available</li> </ul> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache Predicti
onIO mailing lists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Java</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.3</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/PredictionIO/template-scala-parallel-productranking">Product Ranking</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=PredictionIO&repo=template-scala-parallel-productranking&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template sorts a list of products for a user based on his/her preference. This is ideal for personalizing the display order of product page, catalog, or menu items if you have large number of options. It creates engagement and early conversion by placing products that a user prefers on the top. </p> <p>Support: </p> <b
r> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/PredictionIO/template-scala-parallel-complementarypurchase">Complementary Purchase</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=PredictionIO&repo=template-scala-parallel-complementarypurchase&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template recommends the complementary items which most user frequently buy at the same time with one or more items in the query. </p> <p>Support: </p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td>
<td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/vaibhavist/template-scala-parallel-recommendation">Music Recommendations</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=vaibhavist&repo=template-scala-parallel-recommendation&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This is very similar to music recommendations template. It is integrated with all the events a music application can have such as song played, liked, downloaded, purchased, etc. </p> <p>Support: <a href="https://github.com/vaibhavist/template-scala-parallel-recommendation/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha
</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/vngrs/template-scala-parallel-viewedthenbought">Viewed This Bought That</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=vngrs&repo=template-scala-parallel-viewedthenbought&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This Engine uses co-occurence algorithm to match viewed items to bought items. Using this engine you may predict which item the user will buy, given the item(s) browsed. </p> <p>Support: <a href="https://github.com/vngrs/template-scala-parallel-viewedthenbought/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <b
r> <h3><a href="https://github.com/goliasz/pio-template-fpm">Frequent Pattern Mining</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-fpm&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Template uses FP Growth algorithm allowing to mine for frequent patterns. Template returns subsequent items together with confidence score. Sometimes used as a shopping cart recommender but has other uses. </p> <p>Support: <a href="https://github.com/goliasz/pio-template-fpm/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/ramaboo/template-scala-parallel-similarproduct-with-rating">Sim
ilar Product with Rating</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=ramaboo&repo=template-scala-parallel-similarproduct-with-rating&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Similar product template with rating support! Used for the MovieLens Demo. </p> <p>Support: <a href="https://github.com/ramaboo/template-scala-parallel-similarproduct-with-rating/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>beta</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/goliasz/pio-template-fpm">Frequent Pattern Mining</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-fpm&type=star&count=true" frameborder
="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Template uses FP Growth algorithm allowing to mine for frequent patterns. Template returns subsequent items together with confidence score. </p> <p>Support: <a href="https://github.com/goliasz/pio-template-fpm/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> </div> <div data-tab="Classification" id="tab-354b071a-3bca-4eca-9b0f-a308960970b1"> <h3><a href="https://github.com/apache/incubator-predictionio-template-attribute-based-classifier">Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-attribute-based-classifier&type=star&count=true" frameborder="0" a
lign="middle" scrolling="0" width="170px" height="20px"></iframe> <p> An engine template is an almost-complete implementation of an engine. PredictionIO's Classification Engine Template has integrated Apache Spark MLlib's Naive Bayes algorithm by default. </p> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache PredictionIO mailing lists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/haricharan123/PredictionIo-lingpipe-MultiLabelClassification">Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=haricharan123&repo=PredictionIo-lingpipe-MultiLabelClassification&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="1
70px" height="20px"></iframe> <p> This engine template is an almost-complete implementation of an engine meant to used with PredictionIO. This Multi-label Classification Engine Template has integrated LingPipe (http://alias-i.com/lingpipe/) algorithm by default. </p> <p>Support: </p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Java</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.5</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/PredictionIO/template-scala-parallel-leadscoring">Lead Scoring</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=PredictionIO&repo=template-scala-parallel-leadscoring&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template predicts the probability of an user will convert (conversion e
vent by user) in the current session. </p> <p>Support: </p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-text-classifier">Text Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-text-classifier&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Use this engine for general text classification purposes. Uses OpenNLP library for text vectorization, includes t.f.-i.d.f.-based feature transformation and reduction, and uses Spark MLLib's Multinomial Naive Bayes implementation for classification. </p> <p>Support: <a href="https://gith
ub.com/apache/incubator-predictionio-template-text-classifier/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/andrewwuan/PredictionIO-Churn-Prediction-H2O-Sparkling-Water">Churn Prediction - H2O Sparkling Water</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=andrewwuan&repo=PredictionIO-Churn-Prediction-H2O-Sparkling-Water&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This is an engine template with Sparkling Water integration. The goal is to use Deep Learning algorithm to predict the churn rate for a phone carrier's customers. </p> <p>Support: <a href="https://github.com/andrewwuan/Predic
tionIO-Churn-Prediction-H2O-Sparkling-Water/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/detrevid/predictionio-template-classification-dl4j">Classification Deeplearning4j</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=detrevid&repo=predictionio-template-classification-dl4j&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> A classification engine template that uses Deeplearning4j library. </p> <p>Support: <a href="https://github.com/detrevid/predictionio-template-classification-dl4j/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</
th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/EmergentOrder/template-scala-probabilistic-classifier-batch-lbfgs">Probabilistic Classifier (Logistic Regression w/ LBFGS)</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=EmergentOrder&repo=template-scala-probabilistic-classifier-batch-lbfgs&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> A PredictionIO engine template using logistic regression (trained with limited-memory BFGS ) with raw (probabilistic) outputs. </p> <p>Support: <a href="https://github.com/EmergentOrder/template-scala-probabilistic-classifier-batch-lbfgs/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min versio
n</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>MIT License</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/chrischris292/template-classification-opennlp">Document Classification with OpenNLP</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=chrischris292&repo=template-classification-opennlp&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Document Classification template with OpenNLP GISModel. </p> <p>Support: <a href="https://github.com/chrischris292/template-classification-opennlp/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.0</td> <td>requires conversion</td> </
tr> </table> <br> <h3><a href="https://github.com/harry5z/template-circuit-classification-sparkling-water">Circuit End Use Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=harry5z&repo=template-circuit-classification-sparkling-water&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> A classification engine template that uses machine learning models trained with sample circuit energy consumption data and end usage to predict the end use of a circuit by its energy consumption history. </p> <p>Support: <a href="https://github.com/harry5z/template-circuit-classification-sparkling-water/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.1</td> <td>requires conversion</td> </
tr> </table> <br> <h3><a href="https://github.com/ailurus1991/GBRT_Template_PredictionIO">GBRT_Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=ailurus1991&repo=GBRT_Template_PredictionIO&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> The Gradient-Boosted Regression Trees(GBRT) for classification. </p> <p>Support: <a href="https://github.com/ailurus1991/GBRT_Template_PredictionIO/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/mohanaprasad1994/PredictionIO-MLlib-Decision-Trees-Template">MLlib-Decision-Trees-Template</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user
=mohanaprasad1994&repo=PredictionIO-MLlib-Decision-Trees-Template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> An engine template is an almost-complete implementation of an engine. This is a classification engine template which has integrated Apache Spark MLlib's Decision tree algorithm by default. </p> <p>Support: <a href="https://github.com/mohanaprasad1994/PredictionIO-MLlib-Decision-Trees-Template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/jimmyywu/predictionio-template-classification-dl4j-multilayer-network">Classification with MultiLayerNetwork</a></h3> <iframe src="https://ghbtns.com/github
-btn.html?user=jimmyywu&repo=predictionio-template-classification-dl4j-multilayer-network&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine template integrates the MultiLayerNetwork implementation from the Deeplearning4j library into PredictionIO. In this template, we use PredictionIO to classify the widely-known IRIS flower dataset by constructing a deep-belief net. </p> <p>Support: <a href="https://github.com/jimmyywu/predictionio-template-classification-dl4j-multilayer-network/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/thomasste/template-scala-parallel-dl4j-rntn">Deeplearning4j RNTN</a><
/h3> <iframe src="https://ghbtns.com/github-btn.html?user=thomasste&repo=template-scala-parallel-dl4j-rntn&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Recursive Neural Tensor Network algorithm is supervised learning algorithm used to predict sentiment of sentences. This template is based on deeplearning4j RNTN example: https://github.com/SkymindIO/deeplearning4j-nlp-examples/tree/master/src/main/java/org/deeplearning4j/rottentomatoes/rntn. It's goal is to show how to integrate deeplearning4j library with PredictionIO. </p> <p>Support: <a href="https://github.com/thomasste/template-scala-parallel-dl4j-rntn/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td>
</tr> </table> <br> <h3><a href="https://github.com/singsanj/classifier-kafka-streaming-template">classifier-kafka-streaming-template</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=singsanj&repo=classifier-kafka-streaming-template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> The template will provide a simple integration of DASE with kafka using spark streaming capabilites in order to play around with real time notification, messages .. </p> <p>Support: <a href="https://github.com/singsanj/classifier-kafka-streaming-template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>-</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/peoplehum/BagOfWor
ds_SentimentAnalysis_Template">Sentiment Analysis - Bag of Words Model</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=peoplehum&repo=BagOfWords_SentimentAnalysis_Template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This sentiment analysis template uses a bag of words model. Given text, the engine will return sentiment as 1.0 (positive) or 0.0 (negative) along with scores indicating how +ve or -ve it is. </p> <p>Support: <a href="https://github.com/peoplehum/BagOfWords_SentimentAnalysis_Template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> </div> <div data-tab="Regression" id="tab-c5c557f5-2eb3-4ced-b65f
-52fb97ac81bd"> <h3><a href="https://github.com/goliasz/pio-template-sr">Survival Regression</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-sr&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Survival regression template is based on brand new Spark 1.6 AFT (accelerated failure time) survival analysis algorithm. There are interesting applications of survival analysis like: </p> <ul class="tab-list"> <li class="tab-list-element">Business Planning : Profiling customers who has a higher survival rate and make strategy accordingly.</li> <li class="tab-list-element">Lifetime Value Prediction : Engage with customers according to their lifetime value</li> <li class="tab-list-element">Active customers : Predict when the customer will be active for the next time and take interventions accordingly. * Campaign evaluation : Monitor effect of campaign on the survival rate of customers.
</li> </ul> Source: http://www.analyticsvidhya.com/blog/2014/04/survival-analysis-model-you/ <p>Support: <a href="http://www.analyticsvidhya.com/blog/2014/04/survival-analysis-model-you/">Blog post</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>beta</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/BensonQiu/predictionio-template-recommendation-sparklingwater">Sparkling Water-Deep Learning Energy Forecasting</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=BensonQiu&repo=predictionio-template-recommendation-sparklingwater&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This Engine Template demonstrates an energy forecasting engine. It integrates Deep Learning from the
Sparkling Water library to perform energy analysis. We can query the circuit and time, and return predicted energy usage. </p> <p>Support: <a href="https://github.com/BensonQiu/predictionio-template-recommendation-sparklingwater/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/detrevid/predictionio-load-forecasting">Electric Load Forecasting</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=detrevid&repo=predictionio-load-forecasting&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This is a PredictionIO engine for electric load forecasting. The engine is using linear regression with stochastic
gradient descent from Spark MLlib. </p> <p>Support: <a href="https://github.com/detrevid/predictionio-load-forecasting/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/RAditi/PredictionIO-MLLib-LinReg-Template">MLLib-LinearRegression</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=RAditi&repo=PredictionIO-MLLib-LinReg-Template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template uses the linear regression with stochastic gradient descent algorithm from MLLib to make predictions on real-valued data based on features (explanatory variables) </p> <p>Support: <a href="https://github.co
m/RAditi/PredictionIO-MLLib-LinReg-Template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.1</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/mgcdanny/pio-linear-regression-bfgs">Linear Regression BFGS</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=mgcdanny&repo=pio-linear-regression-bfgs&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Modeling the relationship between a dependent variable, y, and one or more explanatory variables, denoted X. </p> <p>Support: </p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <t
d>Scala</td> <td>Apache Licence 2.0</td> <td>beta</td> <td>0.10.0</td> <td></td> </tr> </table> <br> </div> <div data-tab="NLP" id="tab-438f4423-8436-4899-b139-e4041b981e24"> <h3><a href="https://github.com/goliasz/pio-template-text-similarity">Cstablo-template-text-similarity-classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-text-similarity&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Text similarity engine based on Word2Vec algorithm. Builds vectors of full documents in training phase. Finds similar documents in query phase. </p> <p>Support: <a href="https://github.com/goliasz/pio-template-text-similarity/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>
alpha</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/peoplehum/template-Labelling-Topics-with-wikipedia">Topic Labelling with Wikipedia</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=peoplehum&repo=template-Labelling-Topics-with-wikipedia&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template will label topics (e.g. topic generated through LDA topic modeling) with relevant category by referring to Wikipedia as a knowledge base. </p> <p>Support: <a href="https://github.com/peoplehum/template-Labelling-Topics-with-wikipedia/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td>
</tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-text-classifier">Text Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-text-classifier&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Use this engine for general text classification purposes. Uses OpenNLP library for text vectorization, includes t.f.-i.d.f.-based feature transformation and reduction, and uses Spark MLLib's Multinomial Naive Bayes implementation for classification. </p> <p>Support: <a href="https://github.com/apache/incubator-predictionio-template-text-classifier/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</t
d> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/thomasste/template-scala-parallel-dl4j-rntn">Deeplearning4j RNTN</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=thomasste&repo=template-scala-parallel-dl4j-rntn&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Recursive Neural Tensor Network algorithm is supervised learning algorithm used to predict sentiment of sentences. This template is based on deeplearning4j RNTN example: https://github.com/SkymindIO/deeplearning4j-nlp-examples/tree/master/src/main/java/org/deeplearning4j/rottentomatoes/rntn. It's goal is to show how to integrate deeplearning4j library with PredictionIO. </p> <p>Support: <a href="https://github.com/thomasste/template-scala-parallel-dl4j-rntn/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO C
onvesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/peoplehum/BagOfWords_SentimentAnalysis_Template">Sentiment Analysis - Bag of Words Model</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=peoplehum&repo=BagOfWords_SentimentAnalysis_Template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This sentiment analysis template uses a bag of words model. Given text, the engine will return sentiment as 1.0 (positive) or 0.0 (negative) along with scores indicating how +ve or -ve it is. </p> <p>Support: <a href="https://github.com/peoplehum/BagOfWords_SentimentAnalysis_Template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr
> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/infoquestsolutions/OpenNLP-SentimentAnalysis-Template">OpenNLP Sentiment Analysis Template</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=infoquestsolutions&repo=OpenNLP-SentimentAnalysis-Template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Given a sentence, this engine will return a score between 0 and 4. This is the sentiment of the sentence. The lower the number the more negative the sentence is. It uses the OpenNLP library. </p> <p>Support: <a href="https://github.com/infoquestsolutions/OpenNLP-SentimentAnalysis-Template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr>
<tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>beta</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> <h3><a href="https://github.com/pawel-n/template-scala-cml-sentiment">Sentiment analysis</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=pawel-n&repo=template-scala-cml-sentiment&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template implements various algorithms for sentiment analysis, most based on recursive neural networks (RNN) and recursive neural tensor networks (RNTN)[1]. It uses an experimental library called Composable Machine Learning (CML) and the Stanford Parser. The example data set is the Stanford Sentiment Treebank. </p> <p>Support: <a href="https://github.com/pawel-n/template-scala-cml-sentiment/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min vers
ion</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/pawel-n/template-scala-parallel-word2vec">Word2Vec</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=pawel-n&repo=template-scala-parallel-word2vec&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template integrates the Word2Vec implementation from deeplearning4j with PredictionIO. The Word2Vec algorithm takes a corpus of text and computes a vector representation for each word. These representations can be subsequently used in many natural language processing applications. </p> <p>Support: <a href="https://github.com/pawel-n/template-scala-parallel-word2vec/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th>
<th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/thomasste/template-scala-spark-dl4j-word2vec">Spark Deeplearning4j Word2Vec</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=thomasste&repo=template-scala-spark-dl4j-word2vec&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template shows how to integrate Deeplearnign4j spark api with PredictionIO on example of app which uses Word2Vec algorithm to predict nearest words. </p> <p>Support: <a href="https://github.com/thomasste/template-scala-spark-dl4j-word2vec/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Paral
lel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/whhone/template-sentiment-analysis">Sentiment Analysis Template</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=whhone&repo=template-sentiment-analysis&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Given a sentence, return a score between 0 and 4, indicating the sentence's sentiment. 0 being very negative, 4 being very positive, 2 being neutral. The engine uses the stanford CoreNLP library and the Scala binding `gangeli/CoreNLP-Scala` for parsing. </p> <p>Support: <a href="https://github.com/whhone/template-sentiment-analysis/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Sc
ala</td> <td>None</td> <td>stable</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/thomasste/template-scala-rnn">Recursive Neural Networks (Sentiment Analysis)</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=thomasste&repo=template-scala-rnn&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Predicting sentiment of phrases with use of Recursive Neural Network algorithm and OpenNLP parser. </p> <p>Support: <a href="https://github.com/thomasste/template-scala-rnn/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/Ling-Ling/CoreNLP-Text-Classificat
ion">CoreNLP Text Classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=Ling-Ling&repo=CoreNLP-Text-Classification&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This engine uses CoreNLP to do text analysis in order to classify the category a strings of text falls under. </p> <p>Support: <a href="https://github.com/Ling-Ling/CoreNLP-Text-Classification/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>-</td> <td>requires conversion</td> </tr> </table> <br> </div> <div data-tab="Clustering" id="tab-253777c0-7b6b-4bbc-a747-d88977c976f4"> <h3><a href="https://github.com/sahiliitm/predictionio-MLlibKMeansClusteringTemplate">MLlibKMeansClustering</a></h3> <iframe src="https://gh
btns.com/github-btn.html?user=sahiliitm&repo=predictionio-MLlibKMeansClusteringTemplate&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This is a template which demonstrates the use of K-Means clustering algorithm which can be deployed on a spark-cluster using prediction.io. </p> <p>Support: <a href="https://github.com/sahiliitm/predictionio-MLlibKMeansClusteringTemplate/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>-</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/EmergentOrder/template-scala-topic-model-LDA">Topc Model (LDA)</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=EmergentOrder&repo=template-scala-topic-model-LDA&type=star&a
mp;count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> A PredictionIO engine template using Latent Dirichlet Allocation to learn a topic model from raw text </p> <p>Support: <a href="https://github.com/EmergentOrder/template-scala-topic-model-LDA/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.4</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/singsanj/KMeans-parallel-template">KMeans-Clustering-Template</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=singsanj&repo=KMeans-parallel-template&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> forked from PredictionIO/template-scala-parallel-vanilla. I
t implements the KMeans Algorithm. Can be extended to mainstream implementation with minor changes. </p> <p>Support: <a href="https://github.com/singsanj/KMeans-parallel-template/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/peoplehum/template-Labelling-Topics-with-wikipedia">Topic Labelling with Wikipedia</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=peoplehum&repo=template-Labelling-Topics-with-wikipedia&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template will label topics (e.g. topic generated through LDA topic modeling) with relevant category by referring to Wikipedia as a
knowledge base. </p> <p>Support: <a href="https://github.com/peoplehum/template-Labelling-Topics-with-wikipedia/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.10.0-incubating</td> <td>already compatible</td> </tr> </table> <br> </div> <div data-tab="Similarity" id="tab-c5abbc5e-f18f-45e4-bc90-07d69afbbd90"> <h3><a href="https://github.com/alexice/template-scala-parallel-svd-item-similarity">Content Based SVD Item Similarity Engine</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=alexice&repo=template-scala-parallel-svd-item-similarity&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Template to calculate similarity between items based on their attributes—sometimes called conten
t-based similarity. Attributes can be either numeric or categorical in the last case it will be encoded using one-hot encoder. Algorithm uses SVD in order to reduce data dimensionality. Cosine similarity is now implemented but can be easily extended to other similarity measures. </p> <p>Support: <a href="https://groups.google.com/forum/#!forum/actionml-user">The Universal Recommender user group</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.2</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/goliasz/pio-template-text-similarity">Cstablo-template-text-similarity-classification</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-text-similarity&type=star&count=true" frameborder="0" align="middle" scroll
ing="0" width="170px" height="20px"></iframe> <p> Text similarity engine based on Word2Vec algorithm. Builds vectors of full documents in training phase. Finds similar documents in query phase. </p> <p>Support: <a href="https://github.com/goliasz/pio-template-text-similarity/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/ramaboo/template-scala-parallel-similarproduct-with-rating">Similar Product with Rating</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=ramaboo&repo=template-scala-parallel-similarproduct-with-rating&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Similar product template w
ith rating support! Used for the MovieLens Demo. </p> <p>Support: <a href="https://github.com/ramaboo/template-scala-parallel-similarproduct-with-rating/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>beta</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> </div> <div data-tab="Other" id="tab-23e1ba84-d767-40f0-8fa4-1e7ff9011667"> <h3><a href="https://github.com/goliasz/pio-template-fpm">Frequent Pattern Mining</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=goliasz&repo=pio-template-fpm&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Template uses FP Growth algorithm allowing to mine for frequent patterns. Template returns subsequent items together with confidence score. </p> <
p>Support: <a href="https://github.com/goliasz/pio-template-fpm/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>alpha</td> <td>0.9.5</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/anthill/template-decision-tree-feature-importance">template-decision-tree-feature-importance</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=anthill&repo=template-decision-tree-feature-importance&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> This template shows how to use spark' decision tree. It enables : - both categorical and continuous features - feature importance calculation - tree output in json - reading training data from a csv file </p> <p>Support: <a href="https://gith
ub.com/anthill/template-decision-tree-feature-importance/issues">Github issues</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.0</td> <td>requires conversion</td> </tr> </table> <br> <h3><a href="https://github.com/apache/incubator-predictionio-template-skeleton">Skeleton</a></h3> <iframe src="https://ghbtns.com/github-btn.html?user=apache&repo=incubator-predictionio-template-skeleton&type=star&count=true" frameborder="0" align="middle" scrolling="0" width="170px" height="20px"></iframe> <p> Skeleton template is for developing new engine when you find other engine templates do not fit your needs. This template provides a skeleton to kick start new engine development. </p> <p>Support: <a href="http://predictionio.incubator.apache.org/support/">Apache PredictionIO mailing l
ists</a></p> <br> <table> <tr> <th>Type</th> <th>Language</th> <th>License</th> <th>Status</th> <th>PIO min version</th> <th>Apache PIO Convesion Required</th> </tr> <tr> <td>Parallel</td> <td>Scala</td> <td>Apache Licence 2.0</td> <td>stable</td> <td>0.9.2</td> <td>already compatible</td> </tr> </table> <br> </div> </div> </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:user-subscribe@predictionio.incubator.apache.org" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflo
w</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:dev-subscribe@predictionio.incubator.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 class="row">
<div class="col-md-12 footer-link-column"><a class="pull-right" href="http://incubator.apache.org/projects/predictionio.html"><img alt="Apache 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="so
cial-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.co
m/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(){
+<!DOCTYPE html><html><head><title>Engine Template Gallery</title><meta charset="utf-8"/><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta class="swiftype" name="title" data-type="string" content="Engine Template Gallery"/><link rel="canonical" href="https://predictionio.incubator.apache.org/gallery/template-gallery/"/><link href="/images/favicon/normal-b330020a.png" rel="shortcut icon"/><link href="/images/favicon/apple-c0febcf2.png" rel="apple-touch-icon"/><link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/><link href="/stylesheets/application-eccfc6cb.css" rel="stylesheet" type="text/css"/><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdn.mathja
x.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><script src="//use.typekit.net/pqo0itb.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script></head><body><div id="global"><header><div class="container" id="header-wrapper"><div class="row"><div class="col-sm-12"><div id="logo-wrapper"><span id="drawer-toggle"></span><a href="#"></a><a href="http://predictionio.incubator.apache.org/"><img alt="PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a><span>â„¢</span></div><div id="menu-wrapper"><div id="pill-wrapper"><a class="pill left" href="/gallery/template-gallery">TEMPLATES</a> <a class="pill right" href="//github.com/apache/incubator-predictionio/">OPEN SOURCE</a></div></div><img class="mobile-search-bar-toggler hidden-md hidden-lg" src="/images/icons/search-glass-704bd4ff.png"/></div></div></div></header><div id="search-bar-row-wrapper"><div class="container-fluid" id="search-bar-row"><div class="row"><div class="col-md-9 co
l-sm-11 col-xs-11"><div class="hidden-md hidden-lg" id="mobile-page-heading-wrapper"><p>PredictionIO Docs</p><h4>Browse</h4></div><h4 class="hidden-sm hidden-xs">PredictionIO Docs</h4></div><div class="col-md-3 col-sm-1 col-xs-1 hidden-md hidden-lg"><img id="left-menu-indicator" src="/images/icons/down-arrow-dfe9f7fe.png"/></div><div class="col-md-3 col-sm-12 col-xs-12 swiftype-wrapper"><div class="swiftype"><form class="search-form"><img class="search-box-toggler hidden-xs hidden-sm" src="/images/icons/search-glass-704bd4ff.png"/><div class="search-box"><img src="/images/icons/search-glass-704bd4ff.png"/><input type="text" id="st-search-input" class="st-search-input" placeholder="Search Doc..."/></div><img class="swiftype-row-hider hidden-md hidden-lg" src="/images/icons/drawer-toggle-active-fcbef12a.png"/></form></div></div><div class="mobile-left-menu-toggler hidden-md hidden-lg"></div></div></div></div><div id="page" class="container-fluid"><div class="row"><div id="left-menu-wr
apper" class="col-md-3"><nav id="nav-main"><ul><li class="level-1"><a class="expandible" href="/"><span>Apache PredictionIOâ„¢ (incubating) Documentation</span></a><ul><li class="level-2"><a class="final" href="/"><span>Welcome to Apache PredictionIO (incubating)</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Getting Started</span></a><ul><li class="level-2"><a class="final" href="/start/"><span>A Quick Intro</span></a></li><li class="level-2"><a class="final" href="/install/"><span>Installing Apache PredictionIO (incubating)</span></a></li><li class="level-2"><a class="final" href="/start/download/"><span>Downloading an Engine Template</span></a></li><li class="level-2"><a class="final" href="/start/deploy/"><span>Deploying Your First Engine</span></a></li><li class="level-2"><a class="final" href="/start/customize/"><span>Customizing the Engine</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Integrating with Your
App</span></a><ul><li class="level-2"><a class="final" href="/appintegration/"><span>App Integration Overview</span></a></li><li class="level-2"><a class="expandible" href="/sdk/"><span>List of SDKs</span></a><ul><li class="level-3"><a class="final" href="/sdk/java/"><span>Java & Android SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/php/"><span>PHP SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/python/"><span>Python SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/ruby/"><span>Ruby SDK</span></a></li><li class="level-3"><a class="final" href="/sdk/community/"><span>Community Powered SDKs</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Deploying an Engine</span></a><ul><li class="level-2"><a class="final" href="/deploy/"><span>Deploying as a Web Service</span></a></li><li class="level-2"><a class="final" href="/batchpredict/"><span>Batch Predictions</span></a></li><li class="level-
2"><a class="final" href="/deploy/monitoring/"><span>Monitoring Engine</span></a></li><li class="level-2"><a class="final" href="/deploy/engineparams/"><span>Setting Engine Parameters</span></a></li><li class="level-2"><a class="final" href="/deploy/enginevariants/"><span>Deploying Multiple Engine Variants</span></a></li><li class="level-2"><a class="final" href="/deploy/plugin/"><span>Engine Server Plugin</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Customizing an Engine</span></a><ul><li class="level-2"><a class="final" href="/customize/"><span>Learning DASE</span></a></li><li class="level-2"><a class="final" href="/customize/dase/"><span>Implement DASE</span></a></li><li class="level-2"><a class="final" href="/customize/troubleshooting/"><span>Troubleshooting Engine Development</span></a></li><li class="level-2"><a class="final" href="/api/current/#package"><span>Engine Scala APIs</span></a></li></ul></li><li class="level-1"><a class="expandib
le" href="#"><span>Collecting and Analyzing Data</span></a><ul><li class="level-2"><a class="final" href="/datacollection/"><span>Event Server Overview</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventapi/"><span>Collecting Data with REST/SDKs</span></a></li><li class="level-2"><a class="final" href="/datacollection/eventmodel/"><span>Events Modeling</span></a></li><li class="level-2"><a class="final" href="/datacollection/webhooks/"><span>Unifying Multichannel Data with Webhooks</span></a></li><li class="level-2"><a class="final" href="/datacollection/channel/"><span>Channel</span></a></li><li class="level-2"><a class="final" href="/datacollection/batchimport/"><span>Importing Data in Batch</span></a></li><li class="level-2"><a class="final" href="/datacollection/analytics/"><span>Using Analytics Tools</span></a></li><li class="level-2"><a class="final" href="/datacollection/plugin/"><span>Event Server Plugin</span></a></li></ul></li><li class="level-1
"><a class="expandible" href="#"><span>Choosing an Algorithm(s)</span></a><ul><li class="level-2"><a class="final" href="/algorithm/"><span>Built-in Algorithm Libraries</span></a></li><li class="level-2"><a class="final" href="/algorithm/switch/"><span>Switching to Another Algorithm</span></a></li><li class="level-2"><a class="final" href="/algorithm/multiple/"><span>Combining Multiple Algorithms</span></a></li><li class="level-2"><a class="final" href="/algorithm/custom/"><span>Adding Your Own Algorithms</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>ML Tuning and Evaluation</span></a><ul><li class="level-2"><a class="final" href="/evaluation/"><span>Overview</span></a></li><li class="level-2"><a class="final" href="/evaluation/paramtuning/"><span>Hyperparameter Tuning</span></a></li><li class="level-2"><a class="final" href="/evaluation/evaluationdashboard/"><span>Evaluation Dashboard</span></a></li><li class="level-2"><a class="final" href="/eva
luation/metricchoose/"><span>Choosing Evaluation Metrics</span></a></li><li class="level-2"><a class="final" href="/evaluation/metricbuild/"><span>Building Evaluation Metrics</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>System Architecture</span></a><ul><li class="level-2"><a class="final" href="/system/"><span>Architecture Overview</span></a></li><li class="level-2"><a class="final" href="/system/anotherdatastore/"><span>Using Another Data Store</span></a></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>PredictionIO Official Templates</span></a><ul><li class="level-2"><a class="final" href="/templates/"><span>Intro</span></a></li><li class="level-2"><a class="expandible" href="#"><span>Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/recommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/dase/"><span>DASE</span></a>
</li><li class="level-3"><a class="final" href="/templates/recommendation/evaluation/"><span>Evaluation Explained</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/reading-custom-events/"><span>Read Custom Events</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-data-prep/"><span>Customize Data Preparator</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/customize-serving/"><span>Customize Serving</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/training-with-implicit-preference/"><span>Train with Implicit Preference</span></a></li><li class="level-3"><a class="final" href="/templates/recommendation/blacklist-items/"><span>Filter Recommended Items by Blacklist in Query</span></a></li><li class="level-3"><a class="final" href="/templat
es/recommendation/batch-evaluator/"><span>Batch Persistable Evaluator</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>E-Commerce Recommendation</span></a><ul><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/ecommercerecommendation/adjust-score/"><span>Adjust Score</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><span>Similar Product</span></a><ul><li class="level-3"><a class="final" href="/templates/similarproduct/quickstart/"><spa
n>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/multi-events-multi-algos/"><span>Multiple Events and Multiple Algorithms</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/return-item-properties/"><span>Returns Item Properties</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/train-with-rate-event/"><span>Train with Rate Event</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/rid-user-set-event/"><span>Get Rid of Events for Users</span></a></li><li class="level-3"><a class="final" href="/templates/similarproduct/recommended-user/"><span>Recommend Users</span></a></li></ul></li><li class="level-2"><a class="expandible" href="#"><sp
an>Classification</span></a><ul><li class="level-3"><a class="final" href="/templates/classification/quickstart/"><span>Quick Start</span></a></li><li class="level-3"><a class="final" href="/templates/classification/dase/"><span>DASE</span></a></li><li class="level-3"><a class="final" href="/templates/classification/how-to/"><span>How-To</span></a></li><li class="level-3"><a class="final" href="/templates/classification/add-algorithm/"><span>Use Alternative Algorithm</span></a></li><li class="level-3"><a class="final" href="/templates/classification/reading-custom-properties/"><span>Read Custom Properties</span></a></li></ul></li></ul></li><li class="level-1"><a class="expandible" href="#"><span>Engine Template Gallery</span></a><ul><li class="level-2"><a class="final active" href="/gallery/template-gallery/"><span>Browse</span></a></li><li class="level-2"><a class="final" href="/community/submit-template/"><span>Submit your Engine as a Template</span></a></li></ul></li><li class="l
evel-1"><a class="expandible" href="#"><span>Demo Tutorials</span></a><ul><li class="level-2"><a class="final" href="/demo/tapster/"><span>Comics Recommendation Demo</span></a></li><li class="level-2"><a class="final" href="/demo/community/"><span>Community Contributed Demo</span></a></li><li class="level-2"><a class="final" href="/demo/textclassification/"><span>Text Classification Engine Tutorial</span></a></li></ul></li><li class="level-1"><a class="expandible" href="/community/"><span>Getting Involved</span></a><ul><li class="level-2"><a class="final" href="/community/contribute-code/"><span>Contribute Code</span></a></li><li class="level-2"><a class="final" href="/community/contribute-documentation/"><span>Contribute Documentation</span></a></li><li class="level-2"><a class="final" href="/community/contribute-sdk/"><span>Contribute a SDK</span></a></li><li class="level-2"><a class="final" href="/community/contribute-webhook/"><span>Contribute a Webhook</span></a></li><li class=
"level-2"><a class="final" href="/community/projects/"><span>Community Projects</span></a></li></ul></li><li class="level-1"><a clas
<TRUNCATED>
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/gallery/template-gallery/index.html.gz
----------------------------------------------------------------------
diff --git a/gallery/template-gallery/index.html.gz b/gallery/template-gallery/index.html.gz
index 94f4c9a..d4c6f76 100644
Binary files a/gallery/template-gallery/index.html.gz and b/gallery/template-gallery/index.html.gz differ
[8/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
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 <bu...@apache.org>
Authored: Thu Oct 19 02:41:38 2017 +0000
Committer: jenkins <bu...@apache.org>
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:user-subscribe@predictionio.incubator.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.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:dev-subscribe@predictionio.incubator.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 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
[4/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/quickstart/index.html b/templates/ecommercerecommendation/quickstart/index.html
index 827711e..547b629 100644
--- a/templates/ecommercerecommendation/quickstart/index.html
+++ b/templates/ecommercerecommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: <strong>user</strong> and <strong>item</strong>; events <strong>view</strong> and <strong>buy</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view and buy an item. The specical <strong>constraint</strong> entiy with entityId <strong>unavailableItems</strong> defines a list of unavailable items and is taken into account in realtime during serving.</p><p>In summary, this template requires '$set' user event, '$set' item event, user-view-item events, user-buy-item event and '$set' constraint event.</p><div class="alert-message info"><p>This template can easily be customized to consider other user-to-it
em events.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this
event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-46a979b6-a9d1-452c-9a60-ae0accb975b3">REST API</a></li> <li data-lang="python"><a href="#tab-958cba3a-6691-4653-8845-94be431d2e9f">Python SDK</a></li> <li data-lang="php"><a href="#tab-23c9dcaf-1c67-4b9d-9b0b-fe7b1d48ad73">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-1c4a1c33-4e12-4643-858b-3409e2ad0457">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7e4b3e8a-2436-4987-8ce6-012a3977ef6a">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-46a979b6-a9d1-452c-9a60-ae0accb975b3"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: <strong>user</strong> and <strong>item</strong>; events <strong>view</strong> and <strong>buy</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view and buy an item. The specical <strong>constraint</strong> entiy with entityId <strong>unavailableItems</strong> defines a list of unavailable items and is taken into account in realtime during serving.</p><p>In summary, this template requires '$set' user event, '$set' item event, user-view-item events, user-buy-item event and '$set' constraint event.</p><div class="alert-message info"><p>This template can easily be customized to consider other user-to-it
em events.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this
event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9477596e-a4bf-4afc-b867-cfca9f0fc630">REST API</a></li> <li data-lang="python"><a href="#tab-cba74059-12e8-43f6-827e-6123ffa3a120">Python SDK</a></li> <li data-lang="php"><a href="#tab-65361c63-3273-47fc-8f8c-856a51b5587b">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-1de6e620-8b86-41bc-a0e3-3e89359c543d">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-6c72d740-6884-4a83-b0fc-7d5ae64426aa">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9477596e-a4bf-4afc-b867-cfca9f0fc630"> <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
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-958cba3a-6691-4653-8845-94be431d2e9f"> <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-cba74059-12e8-43f6-827e-6123ffa3a120"> <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
@@ -78,7 +78,7 @@ Your system is all ready to go.
<span class="n">entity_type</span><span class="o">=</span><span class="s">"user"</span><span class="p">,</span>
<span class="n">entity_id</span><span class="o">=<</span><span class="n">USER_ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-23c9dcaf-1c67-4b9d-9b0b-fe7b1d48ad73"> <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-65361c63-3273-47fc-8f8c-856a51b5587b"> <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
@@ -119,7 +119,7 @@ Your system is all ready to go.
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'categories'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<CATEGORY_1>'</span><span class="p">,</span> <span class="s1">'<CATEGORY_2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1c4a1c33-4e12-4643-858b-3409e2ad0457"> <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-1de6e620-8b86-41bc-a0e3-3e89359c543d"> <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
@@ -136,7 +136,7 @@ Your system is all ready to go.
<span class="s1">'user'</span><span class="p">,</span>
<span class="o"><</span><span class="no">USER</span> <span class="no">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7e4b3e8a-2436-4987-8ce6-012a3977ef6a"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-6c72d740-6884-4a83-b0fc-7d5ae64426aa"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -161,7 +161,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityType</span><span class="o">(</span><span class="s">"user"</span><span class="o">)</span>
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">USER_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">userEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-6bb262ec-0f0d-44d1-88cc-6434f2e110b0">REST API</a></li> <li data-lang="python"><a href="#tab-3820bbe6-0a50-49cc-9a09-f839c85dbf39">Python SDK</a></li> <li data-lang="php"><a href="#tab-598e1c9f-9ba2-4fb6-af12-5f89fb4dad7c">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e62248df-d8b2-4b01-93a3-1c9eb28a1083">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-8b9424f9-93f5-4583-8c1d-f06fffa5cd02">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-6bb262
ec-0f0d-44d1-88cc-6434f2e110b0"> <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> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-28278be3-3904-475a-b77e-cf2c72519007">REST API</a></li> <li data-lang="python"><a href="#tab-7390e4ac-7ea9-4cfa-a1cb-4098eabb46a9">Python SDK</a></li> <li data-lang="php"><a href="#tab-e4a68e91-1ac0-4c4a-ac93-68e1acf52d9a">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-9641e9ae-f20b-4d49-80db-fa09f4aa222d">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-83249d86-5932-4ca9-8e15-c28809d21ffd">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-28278b
e3-3904-475a-b77e-cf2c72519007"> <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
@@ -182,7 +182,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-3820bbe6-0a50-49cc-9a09-f839c85dbf39"> <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-7390e4ac-7ea9-4cfa-a1cb-4098eabb46a9"> <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
@@ -201,7 +201,7 @@ Your system is all ready to go.
<span class="s">"categories"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"<CATEGORY_1>"</span><span class="p">,</span> <span class="s">"<CATEGORY_2>"</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-598e1c9f-9ba2-4fb6-af12-5f89fb4dad7c"> <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-e4a68e91-1ac0-4c4a-ac93-68e1acf52d9a"> <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
@@ -218,7 +218,7 @@ Your system is all ready to go.
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'categories'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<CATEGORY_1>'</span><span class="p">,</span> <span class="s1">'<CATEGORY_2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e62248df-d8b2-4b01-93a3-1c9eb28a1083"> <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-9641e9ae-f20b-4d49-80db-fa09f4aa222d"> <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
@@ -235,7 +235,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-8b9424f9-93f5-4583-8c1d-f06fffa5cd02"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-83249d86-5932-4ca9-8e15-c28809d21ffd"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -248,7 +248,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>)</span>
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"categories"</span><span class="o">,</span> <span class="n">ImmutableList</span><span class="o">.</span><span class="na">of</span><span class="o">(</span><span class="s">"<CATEGORY_1>"</span><span class="o">,</span> <span class="s">"<CATEGORY_2>"</span><span class="o">));</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">itemEvent</span><span class="o">)</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>The properties of the <code>user</code> and <code>item</code> can be set, unset, or delete by special events <strong>$set</strong>, <strong>$unset</strong> and <strong>$delete</strong>. Please refer to <a href="/datacollection/eventapi/#note-about-properties">Event API</a> for more details of using these events.</p><p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a9875696-12b4-4349-ac80-b349b3e1d591">REST API</a></li> <li data-lang="python"><a href="#tab-ff1e1030-57b0-440b-ab74-c0b482da3e71">Python SDK</a></li> <li data-lang="php"><a href="#tab-14513fb9-aca9-418f-8193-bf7ff60b9aac">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e74dbec9-fdf9-421b-8e9b-948d1f
3691da">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-80ea6c76-bb4a-4945-9cad-21dc3ac7e934">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a9875696-12b4-4349-ac80-b349b3e1d591"> <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> <p>The properties of the <code>user</code> and <code>item</code> can be set, unset, or delete by special events <strong>$set</strong>, <strong>$unset</strong> and <strong>$delete</strong>. Please refer to <a href="/datacollection/eventapi/#note-about-properties">Event API</a> for more details of using these events.</p><p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a07203d2-3172-44fa-a3d0-058356a09941">REST API</a></li> <li data-lang="python"><a href="#tab-344feaff-e32d-4f8f-af3a-6cdfe84bf4a9">Python SDK</a></li> <li data-lang="php"><a href="#tab-a5e6dbf0-f39c-40f6-a66d-bbe684199830">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-998da64e-1f9b-41a7-9a83-6e5e23
ab11ae">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-829d2acf-cc99-4168-a6c6-a199bc418e01">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a07203d2-3172-44fa-a3d0-058356a09941"> <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
@@ -267,7 +267,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-ff1e1030-57b0-440b-ab74-c0b482da3e71"> <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-344feaff-e32d-4f8f-af3a-6cdfe84bf4a9"> <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
@@ -284,7 +284,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-14513fb9-aca9-418f-8193-bf7ff60b9aac"> <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-a5e6dbf0-f39c-40f6-a66d-bbe684199830"> <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
@@ -303,7 +303,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e74dbec9-fdf9-421b-8e9b-948d1f3691da"> <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-998da64e-1f9b-41a7-9a83-6e5e23ab11ae"> <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
@@ -322,7 +322,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-80ea6c76-bb4a-4945-9cad-21dc3ac7e934"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-829d2acf-cc99-4168-a6c6-a199bc418e01"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -337,7 +337,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">targetEntityType</span><span class="o">(</span><span class="s">"item"</span><span class="o">)</span>
<span class="o">.</span><span class="na">targetEntityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">viewEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When the user "u0" buy item "i0" on time <code>2014-11-10T13:00:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-09422a94-c274-4cdd-b903-004507177cf0">REST API</a></li> <li data-lang="python"><a href="#tab-61bf2e84-5ec4-4394-ab54-fac727c8e93d">Python SDK</a></li> <li data-lang="php"><a href="#tab-109e1818-89ea-4c77-a5cb-337503d5479d">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-3eb33288-5a0d-4eac-b199-ac00b9041edc">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-2f73b094-280e-4f87-b321-f3fc1f3798f8">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-09422a94-c274-4cdd-b903-004507177cf0"> <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> <p>When the user "u0" buy item "i0" on time <code>2014-11-10T13:00:00.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-3023dc53-e6ab-49d5-b5f3-340cab0189dc">REST API</a></li> <li data-lang="python"><a href="#tab-c1e69b7f-a152-4b27-b20a-c891e31815df">Python SDK</a></li> <li data-lang="php"><a href="#tab-d2984361-ad81-4e8f-9d04-17bca282c422">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-375407fd-3bb5-4a73-9592-20cfbe348bae">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-b1e8bc52-3652-4e33-b4bd-64a2da9e9bda">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-3023dc53-e6ab-49d5-b5f3-340cab0189dc"> <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
@@ -356,7 +356,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T13:00:00.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-61bf2e84-5ec4-4394-ab54-fac727c8e93d"> <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-c1e69b7f-a152-4b27-b20a-c891e31815df"> <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
@@ -373,7 +373,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-109e1818-89ea-4c77-a5cb-337503d5479d"> <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-d2984361-ad81-4e8f-9d04-17bca282c422"> <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
@@ -392,7 +392,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-3eb33288-5a0d-4eac-b199-ac00b9041edc"> <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-375407fd-3bb5-4a73-9592-20cfbe348bae"> <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
@@ -409,7 +409,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-2f73b094-280e-4f87-b321-f3fc1f3798f8"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-b1e8bc52-3652-4e33-b4bd-64a2da9e9bda"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -490,19 +490,19 @@ User u10 buys item i40
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To recommend 4 items to user ID "u1". You send this JSON <code>{ "user": ["u1"], "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="
json"><a href="#tab-4a3f6894-9f88-425e-905b-b7046109c014">REST API</a></li> <li data-lang="python"><a href="#tab-06473aed-caad-4643-8514-5a1b061a4c3e">Python SDK</a></li> <li data-lang="php"><a href="#tab-71915c76-cd33-4b5c-b8bb-51c27c0b9aae">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-5e3976db-4719-442f-996a-16d616d11a10">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-f7bbba92-3479-422c-b041-409f8e52d7f2">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-4a3f6894-9f88-425e-905b-b7046109c014"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To recommend 4 items to user ID "u1". You send this JSON <code>{ "user": ["u1"], "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="
json"><a href="#tab-ac6b9926-2a0f-4c38-8e7e-9fe4350dc2a1">REST API</a></li> <li data-lang="python"><a href="#tab-a5cb01a9-8ef3-4bd4-8d44-5862d5e637cb">Python SDK</a></li> <li data-lang="php"><a href="#tab-67a477cf-24de-4f16-a596-000e92c3b199">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-f6d14bc7-4003-4795-a82c-90da0532c5cc">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-cea811bd-e615-46dd-b7c8-823a0720e009">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-ac6b9926-2a0f-4c38-8e7e-9fe4350dc2a1"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "user": "u1", "num": 4 }'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-06473aed-caad-4643-8514-5a1b061a4c3e"> <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-a5cb01a9-8ef3-4bd4-8d44-5862d5e637cb"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span><span class="s">"user"</span><span class="p">:</span> <span class="s">"u1"</span><span class="p">,</span> <span class="s">"num"</span><span class="p">:</span> <span class="mi">4</span><span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-71915c76-cd33-4b5c-b8bb-51c27c0b9aae"> <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-67a477cf-24de-4f16-a596-000e92c3b199"> <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
@@ -521,7 +521,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-5e3976db-4719-442f-996a-16d616d11a10"> <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-f6d14bc7-4003-4795-a82c-90da0532c5cc"> <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
@@ -534,7 +534,7 @@ http://localhost:8000/queries.json
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'user'</span> <span class="o">=></span> <span class="s1">'i1'</span><span class="p">,</span> <span class="s1">'num'</span> <span class="o">=></span> <span class="mi">4</span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-f7bbba92-3479-422c-b041-409f8e52d7f2"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-cea811bd-e615-46dd-b7c8-823a0720e009"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -578,7 +578,7 @@ http://localhost:8000/queries.json
<span class="o">{</span><span class="s2">"item"</span>:<span class="s2">"i3"</span>,<span class="s2">"score"</span>:0.003007015026561692<span class="o">}</span>
<span class="o">]</span>
<span class="o">}</span>
-</pre></td></tr></tbody></table> </div> <p><em>MyECommerceRecommendation</em> is now running.</p> <div class="alert-message info"><p>To update the model periodically with new data, simply set up a cron job to call <code>pio train</code> and <code>pio deploy</code>. The engine will continue to serve prediction results during the re-train process. After the training is completed, <code>pio deploy</code> will automatically shutdown the existing engine server and bring up a new process on the same port.</p></div><div class="alert-message info"><p><strong>Note that if you import a <em>large</em> data set</strong> and the training seems to be taking forever or getting stuck, it's likely that there is not enough executor memory. It's recommended to setup a Spark standalone cluster, you'll need to specify more driver and executor memory when training with a large data set. Please see <a href="/resources/faq/#engine-training">FAQ here</a> for instructions.</p></div> <h2 id='setti
ng-constraint-"unavailableitems"' class='header-anchors'>Setting constraint "unavailableItems"</h2><p>Now let's send a item contraint "unavailableItems" (replace accessKey with your Access Key):</p><div class="alert-message note"><p>You can also use SDK to send this event as decribed in the SDK sample above.</p></div><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-40fae270-1c64-4849-8cab-5f850fb9ed26">REST API</a></li> <li data-lang="python"><a href="#tab-ca4d22f1-591f-425e-a407-efa2fd48d506">Python SDK</a></li> <li data-lang="php"><a href="#tab-d187c277-3af3-4713-bda6-b9c51891563f">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-bda361fe-57b5-4eea-8b68-697bace23e9b">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-ededb937-ea12-4bd5-ac6a-77cf68e9afcc">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-40fae270-1c64-4849-8cab-5f850fb9ed26"> <div class="highlight shell"> <table style="border-s
pacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
+</pre></td></tr></tbody></table> </div> <p><em>MyECommerceRecommendation</em> is now running.</p> <div class="alert-message info"><p>To update the model periodically with new data, simply set up a cron job to call <code>pio train</code> and <code>pio deploy</code>. The engine will continue to serve prediction results during the re-train process. After the training is completed, <code>pio deploy</code> will automatically shutdown the existing engine server and bring up a new process on the same port.</p></div><div class="alert-message info"><p><strong>Note that if you import a <em>large</em> data set</strong> and the training seems to be taking forever or getting stuck, it's likely that there is not enough executor memory. It's recommended to setup a Spark standalone cluster, you'll need to specify more driver and executor memory when training with a large data set. Please see <a href="/resources/faq/#engine-training">FAQ here</a> for instructions.</p></div> <h2 id='setti
ng-constraint-"unavailableitems"' class='header-anchors'>Setting constraint "unavailableItems"</h2><p>Now let's send a item contraint "unavailableItems" (replace accessKey with your Access Key):</p><div class="alert-message note"><p>You can also use SDK to send this event as decribed in the SDK sample above.</p></div><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2bfbdef7-c152-4663-9378-292f75a669c4">REST API</a></li> <li data-lang="python"><a href="#tab-ab4de6f2-06f4-4c32-8f58-a8b321a81ec6">Python SDK</a></li> <li data-lang="php"><a href="#tab-e9fe35a4-a61f-4c48-b33e-6f0b1f9677bf">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-ecc5fe04-2e86-4fc2-aa67-adffc1b341d2">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-a90aaba7-d80d-40e1-9167-f884405e75b9">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2bfbdef7-c152-4663-9378-292f75a669c4"> <div class="highlight shell"> <table style="border-s
pacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -599,7 +599,7 @@ http://localhost:8000/queries.json
}
"eventTime" : "2015-02-17T02:11:21.934Z"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-ca4d22f1-591f-425e-a407-efa2fd48d506"> <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-ab4de6f2-06f4-4c32-8f58-a8b321a81ec6"> <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
@@ -618,7 +618,7 @@ http://localhost:8000/queries.json
<span class="s">"items"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"<ITEM ID1>"</span><span class="p">,</span> <span class="s">"<ITEM ID2>"</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-d187c277-3af3-4713-bda6-b9c51891563f"> <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-e9fe35a4-a61f-4c48-b33e-6f0b1f9677bf"> <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
@@ -635,7 +635,7 @@ http://localhost:8000/queries.json
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'items'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'<ITEM ID1>'</span><span class="p">,</span> <span class="s1">'<ITEM ID2>'</span><span class="p">))</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-bda361fe-57b5-4eea-8b68-697bace23e9b"> <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-ecc5fe04-2e86-4fc2-aa67-adffc1b341d2"> <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
@@ -650,7 +650,7 @@ http://localhost:8000/queries.json
<span class="s1">'properties'</span> <span class="o">=></span> <span class="p">{</span> <span class="s1">'items'</span> <span class="o">=></span> <span class="p">[</span><span class="s1">'<ITEM ID1>'</span><span class="p">,</span> <span class="s1">'<ITEM ID2>'</span><span class="p">]</span> <span class="p">}</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-ededb937-ea12-4bd5-ac6a-77cf68e9afcc"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-a90aaba7-d80d-40e1-9167-f884405e75b9"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/quickstart/index.html.gz b/templates/ecommercerecommendation/quickstart/index.html.gz
index d2587c8..d411f2f 100644
Binary files a/templates/ecommercerecommendation/quickstart/index.html.gz and b/templates/ecommercerecommendation/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/train-with-rate-event/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/train-with-rate-event/index.html.gz b/templates/ecommercerecommendation/train-with-rate-event/index.html.gz
index 611ae3c..c99b298 100644
Binary files a/templates/ecommercerecommendation/train-with-rate-event/index.html.gz and b/templates/ecommercerecommendation/train-with-rate-event/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/index.html.gz b/templates/index.html.gz
index a5ca2b7..f52c465 100644
Binary files a/templates/index.html.gz and b/templates/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/javaecommercerecommendation/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/javaecommercerecommendation/dase/index.html.gz b/templates/javaecommercerecommendation/dase/index.html.gz
index 271b64d..5d2d234 100644
Binary files a/templates/javaecommercerecommendation/dase/index.html.gz and b/templates/javaecommercerecommendation/dase/index.html.gz differ
[5/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/sitemap.xml
----------------------------------------------------------------------
diff --git a/sitemap.xml b/sitemap.xml
index 08c7cad..f426393 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2,781 +2,781 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>//predictionio.incubator.apache.org/search/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/deploy/plugin/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/deploy/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/deploy/monitoring/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/deploy/enginevariants/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/deploy/engineparams/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/github/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/algorithm/switch/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/algorithm/multiple/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/algorithm/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/algorithm/custom/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/appintegration/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/resources/intellij/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/resources/glossary/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/resources/release/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/resources/faq/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/resources/upgrade/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/batchimport/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/eventmodel/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/eventapi/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/plugin/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/analytics-zeppelin/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/channel/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/analytics/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/analytics-ipynb/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/analytics-tableau/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/datacollection/webhooks/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/demo/supervisedlearning/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/demo/textclassification/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/demo/community/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/demo/tapster/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/demo/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/java/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/python/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/community/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/ruby/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/sdk/php/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-4-3/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-4/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-4-1/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-3-2/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-3-1/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-1/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-4-2/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-2-1/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-2-2/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-3/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/samples/level-2/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/customize/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/customize/troubleshooting/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/customize/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/support/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/paramtuning/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/metricchoose/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/history/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/evaluationdashboard/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/evaluation/metricbuild/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/404/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/start/customize/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/start/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/start/download/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/start/deploy/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/cli/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/batchpredict/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/submit-template/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/contribute-sdk/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/contribute-webhook/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/contribute-code/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/projects/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/community/contribute-documentation/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/production/deploy-cloudformation/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/machinelearning/dimensionalityreduction/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/machinelearning/modelingworkflow/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/tryit/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/system/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/system/deploy-cloudformation/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/system/anotherdatastore/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/gallery/template-gallery/</loc>
- <lastmod>2017-10-19T02:21:37+00:00</lastmod>
+ <lastmod>2017-10-19T02:23:09+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/sdk/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/config-datastore/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/launch-aws/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/install-vagrant/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/install-sourcecode/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/install-linux/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/install/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/vanilla/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/vanilla/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/rid-user-set-event/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/recommended-user/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/return-item-properties/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/multi-events-multi-algos/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/train-with-rate-event/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/similarproduct/how-to/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/classification/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/classification/add-algorithm/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/classification/reading-custom-properties/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/classification/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/classification/how-to/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/complementarypurchase/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/complementarypurchase/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/ecommercerecommendation/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/ecommercerecommendation/train-with-rate-event/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/ecommercerecommendation/adjust-score/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/ecommercerecommendation/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/ecommercerecommendation/how-to/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/blacklist-items/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/training-with-implicit-preference/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/evaluation/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/customize-serving/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/reading-custom-events/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/customize-data-prep/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/batch-evaluator/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/recommendation/how-to/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/productranking/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/productranking/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/leadscoring/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/leadscoring/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/javaecommercerecommendation/quickstart/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>//predictionio.incubator.apache.org/templates/javaecommercerecommendation/dase/</loc>
- <lastmod>2017-10-19T02:21:17+00:00</lastmod>
+ <lastmod>2017-10-19T02:22:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/start/customize/index.html.gz
----------------------------------------------------------------------
diff --git a/start/customize/index.html.gz b/start/customize/index.html.gz
index dcc7759..d682992 100644
Binary files a/start/customize/index.html.gz and b/start/customize/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/start/deploy/index.html.gz
----------------------------------------------------------------------
diff --git a/start/deploy/index.html.gz b/start/deploy/index.html.gz
index cd243de..cd9fabd 100644
Binary files a/start/deploy/index.html.gz and b/start/deploy/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/start/download/index.html.gz
----------------------------------------------------------------------
diff --git a/start/download/index.html.gz b/start/download/index.html.gz
index ab4f2a9..c97a44e 100644
Binary files a/start/download/index.html.gz and b/start/download/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/start/index.html.gz
----------------------------------------------------------------------
diff --git a/start/index.html.gz b/start/index.html.gz
index e0e19b3..37264ab 100644
Binary files a/start/index.html.gz and b/start/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/stylesheets/application-eccfc6cb.css.gz
----------------------------------------------------------------------
diff --git a/stylesheets/application-eccfc6cb.css.gz b/stylesheets/application-eccfc6cb.css.gz
index eb78d6e..f0871ff 100644
Binary files a/stylesheets/application-eccfc6cb.css.gz and b/stylesheets/application-eccfc6cb.css.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/support/index.html.gz
----------------------------------------------------------------------
diff --git a/support/index.html.gz b/support/index.html.gz
index 7ad5cca..fe49f25 100644
Binary files a/support/index.html.gz and b/support/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/system/anotherdatastore/index.html.gz
----------------------------------------------------------------------
diff --git a/system/anotherdatastore/index.html.gz b/system/anotherdatastore/index.html.gz
index a385de6..ec62832 100644
Binary files a/system/anotherdatastore/index.html.gz and b/system/anotherdatastore/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/system/deploy-cloudformation/index.html.gz
----------------------------------------------------------------------
diff --git a/system/deploy-cloudformation/index.html.gz b/system/deploy-cloudformation/index.html.gz
index 2f8121f..85004de 100644
Binary files a/system/deploy-cloudformation/index.html.gz and b/system/deploy-cloudformation/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/system/index.html.gz
----------------------------------------------------------------------
diff --git a/system/index.html.gz b/system/index.html.gz
index e228486..38a2306 100644
Binary files a/system/index.html.gz and b/system/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/add-algorithm/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/add-algorithm/index.html.gz b/templates/classification/add-algorithm/index.html.gz
index b38e585..101527a 100644
Binary files a/templates/classification/add-algorithm/index.html.gz and b/templates/classification/add-algorithm/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/dase/index.html.gz b/templates/classification/dase/index.html.gz
index 3f628d6..5775c28 100644
Binary files a/templates/classification/dase/index.html.gz and b/templates/classification/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/how-to/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/how-to/index.html.gz b/templates/classification/how-to/index.html.gz
index fcf02f7..dd0bafd 100644
Binary files a/templates/classification/how-to/index.html.gz and b/templates/classification/how-to/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/quickstart/index.html b/templates/classification/quickstart/index.html
index 3d1b3fc..084b191 100644
--- a/templates/classification/quickstart/index.html
+++ b/templates/classification/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data. By default, the Classification Engine Template reads 4 properties of a user record: attr0, attr1, attr2 and plan. This templates requires '$set' user events.</p><div class="alert-message info"><p>This template can easily be customized to use different or more number of attributes.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>loc
alhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>To set properties "attr0", "attr1", "attr2" and "plan" for user "u0" on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send <code>$set</code> event for the user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-a35ce812-aad4-4b5d-9c9d-5261b6036e30">REST API</a></li> <li data-lang="python"><a href="#tab-87639d0d-5bb1-46b8-9ac7-9e42b4b8f321">Python SDK</a></li> <li data-lang="php"><a href="#tab-9898a4fb-2e27-4b19-90ed-8925e2acbaf1">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-3de635f3-7e8f-4382-b1bb-08fc634465f6">Ruby SDK</a></li> <li data-lang="java"><a href="#
tab-9840bc3f-09d0-4384-8317-bd87403f065e">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-a35ce812-aad4-4b5d-9c9d-5261b6036e30"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data. By default, the Classification Engine Template reads 4 properties of a user record: attr0, attr1, attr2 and plan. This templates requires '$set' user events.</p><div class="alert-message info"><p>This template can easily be customized to use different or more number of attributes.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>loc
alhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>To set properties "attr0", "attr1", "attr2" and "plan" for user "u0" on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send <code>$set</code> event for the user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-e6095c63-2bcf-4992-8a41-c05d35a4fbee">REST API</a></li> <li data-lang="python"><a href="#tab-41aa4b02-935e-42ca-8236-f1f0c2a80f68">Python SDK</a></li> <li data-lang="php"><a href="#tab-4d1bed1c-a2e0-4cea-a358-9cac85d16ffd">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-72055926-b81a-40e4-aea6-57f1dfff21dc">Ruby SDK</a></li> <li data-lang="java"><a href="#
tab-e6b3b43a-4b34-49c3-8f10-e6815f110dd7">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-e6095c63-2bcf-4992-8a41-c05d35a4fbee"> <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
@@ -59,7 +59,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-87639d0d-5bb1-46b8-9ac7-9e42b4b8f321"> <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-41aa4b02-935e-42ca-8236-f1f0c2a80f68"> <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
@@ -100,7 +100,7 @@ Your system is all ready to go.
<span class="s">"plan"</span> <span class="p">:</span> <span class="nb">int</span><span class="p">(</span><span class="o"><</span><span class="n">VALUE</span> <span class="n">OF</span> <span class="n">PLAN</span><span class="o">></span><span class="p">)</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-9898a4fb-2e27-4b19-90ed-8925e2acbaf1"> <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-4d1bed1c-a2e0-4cea-a358-9cac85d16ffd"> <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
@@ -137,7 +137,7 @@ Your system is all ready to go.
<span class="p">)</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-3de635f3-7e8f-4382-b1bb-08fc634465f6"> <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-72055926-b81a-40e4-aea6-57f1dfff21dc"> <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
@@ -168,7 +168,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-9840bc3f-09d0-4384-8317-bd87403f065e"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-e6b3b43a-4b34-49c3-8f10-e6815f110dd7"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -203,7 +203,7 @@ Your system is all ready to go.
<span class="s">"plan"</span><span class="o">,</span> <span class="o"><</span><span class="n">VALUE</span> <span class="n">OF</span> <span class="n">PLAN</span><span class="o">></span>
<span class="o">));</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">event</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>Note that you can also set the properties for the user with multiple <code>$set</code> events (They will be aggregated during engine training).</p><p>To set properties "attr0", "attr1" and "attr2", and "plan" for user "u1" at different time, you can send follwing <code>$set</code> events for the user. To send these events, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-ec7c90fd-d874-4522-ba14-72f237af9e34">REST API</a></li> <li data-lang="python"><a href="#tab-50988b60-422c-4e7e-ae80-5fef56e72403">Python SDK</a></li> <li data-lang="php"><a href="#tab-31f74182-da6d-4864-972f-55b84f576485">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-1c626c4c-3460-4580-abea-278dfac4f116">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-809c0872-f8fe-48bb-bfbd-6ee47a3802a0">Java SDK</a></li> </ul> <div data-tab
="REST API" data-lang="json" id="tab-ec7c90fd-d874-4522-ba14-72f237af9e34"> <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> <p>Note that you can also set the properties for the user with multiple <code>$set</code> events (They will be aggregated during engine training).</p><p>To set properties "attr0", "attr1" and "attr2", and "plan" for user "u1" at different time, you can send follwing <code>$set</code> events for the user. To send these events, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-2e356073-936a-4a12-9639-701d0f854a1c">REST API</a></li> <li data-lang="python"><a href="#tab-ecfac46c-064f-4aab-b45f-e9533d008e9b">Python SDK</a></li> <li data-lang="php"><a href="#tab-488e504b-63e4-4582-a429-a72120b753d6">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-b90f63b4-ad03-4db2-815e-307a24d49248">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-9ebf931e-1c42-40a1-8eed-e4bcd2d61e64">Java SDK</a></li> </ul> <div data-tab
="REST API" data-lang="json" id="tab-2e356073-936a-4a12-9639-701d0f854a1c"> <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
@@ -274,7 +274,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-50988b60-422c-4e7e-ae80-5fef56e72403"> <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-ecfac46c-064f-4aab-b45f-e9533d008e9b"> <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
@@ -327,7 +327,7 @@ Your system is all ready to go.
<span class="s">"plan"</span> <span class="p">:</span> <span class="nb">int</span><span class="p">(</span><span class="o"><</span><span class="n">VALUE</span> <span class="n">OF</span> <span class="n">PLAN</span><span class="o">></span><span class="p">)</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-31f74182-da6d-4864-972f-55b84f576485"> <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-488e504b-63e4-4582-a429-a72120b753d6"> <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
@@ -390,7 +390,7 @@ Your system is all ready to go.
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1c626c4c-3460-4580-abea-278dfac4f116"> <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-b90f63b4-ad03-4db2-815e-307a24d49248"> <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
@@ -433,7 +433,7 @@ Your system is all ready to go.
<span class="p">)</span>
<span class="c1"># Etc...</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-809c0872-f8fe-48bb-bfbd-6ee47a3802a0"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-9ebf931e-1c42-40a1-8eed-e4bcd2d61e64"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -497,17 +497,17 @@ Your system is all ready to go.
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. For example, to predict the label (i.e. <em>plan</em> in this case) of a user with attr0=2, attr1=0 and attr2=0, you send this JSON <code>{ "attr0":2, "attr1":0, "attr2":0 }</code> to the deployed engine and it will return a JSON of the predicted plan. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK t
o send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-e2fa94f6-b46e-4061-9a66-da062c620d83">REST API</a></li> <li data-lang="python"><a href="#tab-0cbe82d6-95f3-4ee7-8c38-4d65905ffacb">Python SDK</a></li> <li data-lang="php"><a href="#tab-bd8de336-027b-4ed7-be54-76c30618c082">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-9047d149-ea74-4f8a-837a-11d28e30c9c1">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7f750b38-1d80-44e4-b9a3-4c7e0b5eb3b6">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="bash" id="tab-e2fa94f6-b46e-4061-9a66-da062c620d83"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. For example, to predict the label (i.e. <em>plan</em> in this case) of a user with attr0=2, attr1=0 and attr2=0, you send this JSON <code>{ "attr0":2, "attr1":0, "attr2":0 }</code> to the deployed engine and it will return a JSON of the predicted plan. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK t
o send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-81ed40f7-0181-44f3-aa60-e5764f8fce67">REST API</a></li> <li data-lang="python"><a href="#tab-5974cd2a-0a05-40e2-8df7-77e2c2185019">Python SDK</a></li> <li data-lang="php"><a href="#tab-2ef0c447-2833-4a94-86dc-7a906c3d5688">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-39b1c1e3-dab1-4e79-a120-36b7f2483fca">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7a236e71-d0ff-471c-ba9e-ee8c037113c7">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="bash" id="tab-81ed40f7-0181-44f3-aa60-e5764f8fce67"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "attr0":2, "attr1":0, "attr2":0 }'</span> http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-0cbe82d6-95f3-4ee7-8c38-4d65905ffacb"> <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-5974cd2a-0a05-40e2-8df7-77e2c2185019"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span><span class="s">"attr0"</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span> <span class="s">"attr1"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span> <span class="s">"attr2"</span><span class="p">:</span><span class="mi">0</span><span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-bd8de336-027b-4ed7-be54-76c30618c082"> <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-2ef0c447-2833-4a94-86dc-7a906c3d5688"> <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
@@ -526,7 +526,7 @@ Your system is all ready to go.
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-9047d149-ea74-4f8a-837a-11d28e30c9c1"> <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-39b1c1e3-dab1-4e79-a120-36b7f2483fca"> <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
@@ -539,7 +539,7 @@ Your system is all ready to go.
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'attr0'</span> <span class="o">=></span> <span class="mi">2</span><span class="p">,</span> <span class="s1">'attr1'</span> <span class="o">=></span> <span class="mi">0</span><span class="p">,</span> <span class="s1">'attr2'</span> <span class="o">=></span> <span class="mi">0</span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7f750b38-1d80-44e4-b9a3-4c7e0b5eb3b6"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7a236e71-d0ff-471c-ba9e-ee8c037113c7"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/quickstart/index.html.gz b/templates/classification/quickstart/index.html.gz
index d344775..87ade71 100644
Binary files a/templates/classification/quickstart/index.html.gz and b/templates/classification/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/classification/reading-custom-properties/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/reading-custom-properties/index.html.gz b/templates/classification/reading-custom-properties/index.html.gz
index 190d7ea..c20952d 100644
Binary files a/templates/classification/reading-custom-properties/index.html.gz and b/templates/classification/reading-custom-properties/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/complementarypurchase/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/dase/index.html.gz b/templates/complementarypurchase/dase/index.html.gz
index b3120ce..633aace 100644
Binary files a/templates/complementarypurchase/dase/index.html.gz and b/templates/complementarypurchase/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/complementarypurchase/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/quickstart/index.html b/templates/complementarypurchase/quickstart/index.html
index 840f88f..60b73dc 100644
--- a/templates/complementarypurchase/quickstart/index.html
+++ b/templates/complementarypurchase/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, Complementary Purchase Engine Template supports the following entities: <strong>user</strong>, <strong>item</strong>. A user buys an item. This template requires user-buy-item events.</p><p>Note that the engine requires correct buy event time being used in order to determine if the items being bought are in the same 'basket', which is configured by the 'basketWindow' parameter. Using an unreal event time for the buy events will cause an incorrect model. If you use SDK, the current time is used as event time by default.</p><div class="alert-message warning"><p>In particular, make sure correct event time is specified if you import data in batch (i.e. not in real time). If the event time is omitted, the SDK will use <strong>current time</strong> as event time which
is not the actual time of the buy event in this case!</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>When an user u0 buys item i0 on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a buy event. Run the following <code>curl</code> command:
</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-fdc6a82c-d162-42f2-b8b0-16f61aaf62ac">REST API</a></li> <li data-lang="python"><a href="#tab-9933ff01-be50-4991-9a21-cd0ecc9572b2">Python SDK</a></li> <li data-lang="php"><a href="#tab-a3ed3339-e6f1-4b0e-be34-8a06498110d5">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e6805f91-9ef4-433e-b8ee-54e569f7bed0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-fb99e14b-789b-4aaf-9a66-56e276105327">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-fdc6a82c-d162-42f2-b8b0-16f61aaf62ac"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect training data for this Engine. By default, Complementary Purchase Engine Template supports the following entities: <strong>user</strong>, <strong>item</strong>. A user buys an item. This template requires user-buy-item events.</p><p>Note that the engine requires correct buy event time being used in order to determine if the items being bought are in the same 'basket', which is configured by the 'basketWindow' parameter. Using an unreal event time for the buy events will cause an incorrect model. If you use SDK, the current time is used as event time by default.</p><div class="alert-message warning"><p>In particular, make sure correct event time is specified if you import data in batch (i.e. not in real time). If the event time is omitted, the SDK will use <strong>current time</strong> as event time which
is not the actual time of the buy event in this case!</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>When an user u0 buys item i0 on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a buy event. Run the following <code>curl</code> command:
</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-aad43978-656b-4a11-b4b0-d33fd6b2f548">REST API</a></li> <li data-lang="python"><a href="#tab-dcc034cb-6dc1-482e-bcd3-e91515e2e28f">Python SDK</a></li> <li data-lang="php"><a href="#tab-a735c4db-c547-48a5-b7e4-de6f42b90d27">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-2fc5694e-ebd8-404a-a036-2640c8de4ccc">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-4ef814de-1dae-4ec4-b5fd-7b53e3d6986b">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-aad43978-656b-4a11-b4b0-d33fd6b2f548"> <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
@@ -51,7 +51,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-9933ff01-be50-4991-9a21-cd0ecc9572b2"> <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-dcc034cb-6dc1-482e-bcd3-e91515e2e28f"> <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
@@ -104,7 +104,7 @@ Your system is all ready to go.
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span><span class="p">,</span>
<span class="n">event_time</span><span class="o">=<</span><span class="n">EVENT_TIME</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-a3ed3339-e6f1-4b0e-be34-8a06498110d5"> <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-a735c4db-c547-48a5-b7e4-de6f42b90d27"> <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
@@ -155,7 +155,7 @@ Your system is all ready to go.
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e6805f91-9ef4-433e-b8ee-54e569f7bed0"> <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-2fc5694e-ebd8-404a-a036-2640c8de4ccc"> <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
@@ -200,7 +200,7 @@ Your system is all ready to go.
<span class="s1">'eventTime'</span> <span class="o">=></span> <span class="o"><</span><span class="no">EVENT_TIME</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-fb99e14b-789b-4aaf-9a66-56e276105327"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-4ef814de-1dae-4ec4-b5fd-7b53e3d6986b"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -290,7 +290,7 @@ User u10 buys item s2i1 at 2014-10-19 15:43:15.618000-07:53
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can query the engine. For example, return top 3 items which are frequently bought with item "s2i1". You can sending this JSON '{ "items" : ["s2i1"], "num" : 3 }' to the deployed engine. The engine will return a JSON with the recommeded items.</p><p>If you include one or more items in the query, the engine will use each combination of the query items as condition, and return recommended items if there is any for this condition. For example, if you query items are ["A", "B&qu
ot;], then the engine will use ["A"], ["B"], and ["A", "B"] as condition and try to find top n recommended items for each combination.</p><p>You can simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-ca299345-5a12-4198-b413-ff9442da467a">REST API</a></li> <li data-lang="python"><a href="#tab-ac127351-39d1-49aa-b581-a99b1e69626e">Python SDK</a></li> <li data-lang="php"><a href="#tab-93feca3e-cf5c-4475-a3a2-cf16532f8d9e">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-ad4625e7-7fb1-4131-aec3-5ce2f94b9981">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-3d4a9117-405f-4093-b5eb-44473049b4aa">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-ca299345-5a12-4
198-b413-ff9442da467a"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can query the engine. For example, return top 3 items which are frequently bought with item "s2i1". You can sending this JSON '{ "items" : ["s2i1"], "num" : 3 }' to the deployed engine. The engine will return a JSON with the recommeded items.</p><p>If you include one or more items in the query, the engine will use each combination of the query items as condition, and return recommended items if there is any for this condition. For example, if you query items are ["A", "B&qu
ot;], then the engine will use ["A"], ["B"], and ["A", "B"] as condition and try to find top n recommended items for each combination.</p><p>You can simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-56b54389-8c3c-46ff-994c-70c8d038d499">REST API</a></li> <li data-lang="python"><a href="#tab-366d7616-35ed-4f10-8119-cfca9b47154f">Python SDK</a></li> <li data-lang="php"><a href="#tab-8886b7e6-7bf5-472d-bdb9-0835ac7efcb2">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e35e0ea9-cc78-4c96-8120-7ca71917f7a0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-164d18a0-cb81-4762-a744-f0e9d28116af">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-56b54389-8c3c-4
6ff-994c-70c8d038d499"> <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
@@ -303,7 +303,7 @@ User u10 buys item s2i1 at 2014-10-19 15:43:15.618000-07:53
}'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-ac127351-39d1-49aa-b581-a99b1e69626e"> <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-366d7616-35ed-4f10-8119-cfca9b47154f"> <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
@@ -314,7 +314,7 @@ http://localhost:8000/queries.json
<span class="s">"items"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"s2i1"</span><span class="p">],</span>
<span class="s">"num"</span> <span class="p">:</span> <span class="mi">3</span>
<span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-93feca3e-cf5c-4475-a3a2-cf16532f8d9e"> <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-8886b7e6-7bf5-472d-bdb9-0835ac7efcb2"> <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
@@ -341,7 +341,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-ad4625e7-7fb1-4131-aec3-5ce2f94b9981"> <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-e35e0ea9-cc78-4c96-8120-7ca71917f7a0"> <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
@@ -360,7 +360,7 @@ http://localhost:8000/queries.json
<span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-3d4a9117-405f-4093-b5eb-44473049b4aa"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-164d18a0-cb81-4762-a744-f0e9d28116af"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/complementarypurchase/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/quickstart/index.html.gz b/templates/complementarypurchase/quickstart/index.html.gz
index 18ca607..74588f1 100644
Binary files a/templates/complementarypurchase/quickstart/index.html.gz and b/templates/complementarypurchase/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/adjust-score/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/adjust-score/index.html.gz b/templates/ecommercerecommendation/adjust-score/index.html.gz
index 024048b..49d3781 100644
Binary files a/templates/ecommercerecommendation/adjust-score/index.html.gz and b/templates/ecommercerecommendation/adjust-score/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/dase/index.html.gz b/templates/ecommercerecommendation/dase/index.html.gz
index 4f94419..bf922d4 100644
Binary files a/templates/ecommercerecommendation/dase/index.html.gz and b/templates/ecommercerecommendation/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/ecommercerecommendation/how-to/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/how-to/index.html.gz b/templates/ecommercerecommendation/how-to/index.html.gz
index 46bdd20..2c1a9df 100644
Binary files a/templates/ecommercerecommendation/how-to/index.html.gz and b/templates/ecommercerecommendation/how-to/index.html.gz differ
[2/8] incubator-predictionio-site git commit: Documentation based on
apache/incubator-predictionio#f9a1dc26d891d0b9d04dca4571fdfe9cbea0fc14
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/productranking/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/productranking/quickstart/index.html b/templates/productranking/quickstart/index.html
index e62deb7..bb4b58a 100644
--- a/templates/productranking/quickstart/index.html
+++ b/templates/productranking/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data for the app of this Engine. By default, the Product Ranking Engine Template supports 2 types of entities: <strong>user</strong> and <strong>item</strong>, and event <strong>view</strong>. A user can view an item. This template requires '$set' user event, '$set' item event and user-view-item events.</p> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps.
Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-5916fe72-be9b-4748-bc68-1f1e97e086c6">REST API</a></li> <li data-lang="python"><a href="#tab-01cbb7b5-0ab0-4561-945b-bdfb4840947d">Python SDK</a></li> <li data-lang="php"><a href="#tab-45239d36-ec59-4565-b757-28646d174366">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-b5a409e1-d091-49a7-952b-e420abd1eaf0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-8adffdec-9902-4539
-8a7e-385da84d9b0b">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-5916fe72-be9b-4748-bc68-1f1e97e086c6"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data for the app of this Engine. By default, the Product Ranking Engine Template supports 2 types of entities: <strong>user</strong> and <strong>item</strong>, and event <strong>view</strong>. A user can view an item. This template requires '$set' user event, '$set' item event and user-view-item events.</p> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps.
Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-fac68b74-1bd0-4adb-aa38-a7b1038b70f7">REST API</a></li> <li data-lang="python"><a href="#tab-eba39c99-e996-41e6-9c4b-5b250c9b79f1">Python SDK</a></li> <li data-lang="php"><a href="#tab-c7f8befc-d8da-4ab2-aab3-ca5d74d5456e">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-046b8a75-07cb-4dd0-9ebf-e10824cd7bdf">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-aa77f586-0e78-457a
-9fb7-e4e32e648ad9">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-fac68b74-1bd0-4adb-aa38-a7b1038b70f7"> <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
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-01cbb7b5-0ab0-4561-945b-bdfb4840947d"> <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-eba39c99-e996-41e6-9c4b-5b250c9b79f1"> <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
@@ -78,7 +78,7 @@ Your system is all ready to go.
<span class="n">entity_type</span><span class="o">=</span><span class="s">"user"</span><span class="p">,</span>
<span class="n">entity_id</span><span class="o">=<</span><span class="n">USER_ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-45239d36-ec59-4565-b757-28646d174366"> <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-c7f8befc-d8da-4ab2-aab3-ca5d74d5456e"> <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
@@ -103,7 +103,7 @@ Your system is all ready to go.
<span class="s1">'entityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">USER</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-b5a409e1-d091-49a7-952b-e420abd1eaf0"> <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-046b8a75-07cb-4dd0-9ebf-e10824cd7bdf"> <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
@@ -120,7 +120,7 @@ Your system is all ready to go.
<span class="s1">'user'</span><span class="p">,</span>
<span class="o"><</span><span class="no">USER</span> <span class="no">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-8adffdec-9902-4539-8a7e-385da84d9b0b"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-aa77f586-0e78-457a-9fb7-e4e32e648ad9"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -145,7 +145,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityType</span><span class="o">(</span><span class="s">"user"</span><span class="o">)</span>
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">USER_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">userEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-263fff16-fa63-44fb-8c4c-26eb5c81defe">REST API</a></li> <li data-lang="python"><a href="#tab-9f852223-86b7-479d-a242-6c0f7869d61b">Python SDK</a></li> <li data-lang="php"><a href="#tab-7546af3e-7948-44f4-8f9a-b6a88af8b488">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-83f9cb90-77b1-4975-8fdf-67d8436e63e0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-3ad0659b-5d19-4240-8431-2626fbd61a96">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-263fff16-fa63-44fb-8c4c-26eb5c81defe"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td cla
ss="gutter gl" style="text-align: right"><pre class="lineno">1
+</pre></td> </tr></tbody></table> </div> </div> </div> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9875d20a-667d-4609-8676-39dd7781845e">REST API</a></li> <li data-lang="python"><a href="#tab-9ad421ce-aacd-4fb4-89be-9d98a0500fcc">Python SDK</a></li> <li data-lang="php"><a href="#tab-ccdae519-7409-4ad5-874d-5a47bb4c9514">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-be34e44f-bf4d-45b6-991e-09a880e5e687">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-d187c213-a80b-451c-b8f6-51c84f788317">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9875d20a-667d-4609-8676-39dd7781845e"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td cla
ss="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -160,7 +160,7 @@ Your system is all ready to go.
"entityId" : "i0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-9f852223-86b7-479d-a242-6c0f7869d61b"> <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-9ad421ce-aacd-4fb4-89be-9d98a0500fcc"> <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
@@ -173,7 +173,7 @@ Your system is all ready to go.
<span class="n">entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">entity_id</span><span class="o">=<</span><span class="n">ITEM_ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-7546af3e-7948-44f4-8f9a-b6a88af8b488"> <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-ccdae519-7409-4ad5-874d-5a47bb4c9514"> <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
@@ -190,7 +190,7 @@ Your system is all ready to go.
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-83f9cb90-77b1-4975-8fdf-67d8436e63e0"> <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-be34e44f-bf4d-45b6-991e-09a880e5e687"> <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
@@ -203,7 +203,7 @@ Your system is all ready to go.
<span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-3ad0659b-5d19-4240-8431-2626fbd61a96"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-d187c213-a80b-451c-b8f6-51c84f788317"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -214,7 +214,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityType</span><span class="o">(</span><span class="s">"item"</span><span class="o">)</span>
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">itemEvent</span><span class="o">)</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9b684dff-ecc9-4d12-a5df-62fa8cd9cc2d">REST API</a></li> <li data-lang="python"><a href="#tab-a9ff2a09-72aa-4ee8-9659-fdd020726adf">Python SDK</a></li> <li data-lang="php"><a href="#tab-c0188f3e-f71c-4ada-a67a-b56cc459181f">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-8516ac94-95de-4dec-bd54-49318c834ee2">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-4a68f2d5-4825-41d6-8a63-0dddb5be804c">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9b684dff-ecc9-4d12-a5df-62fa8cd9cc2d"> <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> <p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9c5fdefb-1772-4bd9-b7b6-4a6d0948b218">REST API</a></li> <li data-lang="python"><a href="#tab-7105b4f1-2de5-40b4-ab1f-6a4135cec60e">Python SDK</a></li> <li data-lang="php"><a href="#tab-f14c6b7b-f3de-45ba-a87c-ac2403995bf2">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-0f0ff3d7-10b9-40c1-aa06-df2fe9d43e3f">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-7974592d-3b22-4042-8c77-a2ef97232ef5">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9c5fdefb-1772-4bd9-b7b6-4a6d0948b218"> <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
@@ -233,7 +233,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-a9ff2a09-72aa-4ee8-9659-fdd020726adf"> <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-7105b4f1-2de5-40b4-ab1f-6a4135cec60e"> <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
@@ -250,7 +250,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-c0188f3e-f71c-4ada-a67a-b56cc459181f"> <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-f14c6b7b-f3de-45ba-a87c-ac2403995bf2"> <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
@@ -269,7 +269,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-8516ac94-95de-4dec-bd54-49318c834ee2"> <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-0f0ff3d7-10b9-40c1-aa06-df2fe9d43e3f"> <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
@@ -286,7 +286,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-4a68f2d5-4825-41d6-8a63-0dddb5be804c"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-7974592d-3b22-4042-8c77-a2ef97232ef5"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -344,14 +344,14 @@ User u10 views item i7
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To rank items with IDs "i1", "i3", "i10", "i2", "i5", "i31", "i9" for user "u2". You send this JSON <code>{ "user": "u2", "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"] }</code> to the deployed engine and it will return a JSON of the ranked items. Simply send a query by making a HTTP request or through the <code>EngineCl
ient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-d039f4cf-e546-496c-b4c9-42958126ce7b">REST API</a></li> <li data-lang="python"><a href="#tab-92930146-3225-43eb-a0dc-8a2028a1ffdd">Python SDK</a></li> <li data-lang="php"><a href="#tab-c1423c17-f843-471e-9cce-e1615ae080de">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-2f89c266-a435-454e-8a7c-4a1df4a99938">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-3ecee315-e182-43e8-a089-e5cb1d12c296">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-d039f4cf-e546-496c-b4c9-42958126ce7b"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To rank items with IDs "i1", "i3", "i10", "i2", "i5", "i31", "i9" for user "u2". You send this JSON <code>{ "user": "u2", "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"] }</code> to the deployed engine and it will return a JSON of the ranked items. Simply send a query by making a HTTP request or through the <code>EngineCl
ient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-87c44441-eba8-4f3a-94b6-735c798acdee">REST API</a></li> <li data-lang="python"><a href="#tab-fc5ad3fb-bfdd-4212-ac71-da560cc31111">Python SDK</a></li> <li data-lang="php"><a href="#tab-67dd1793-a05f-434b-a81d-37d6090b1772">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-a5152a09-c91a-41e6-8101-61731829f374">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-bdb208d5-150d-4276-af5e-f92f72a4b91f">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-87c44441-eba8-4f3a-94b6-735c798acdee"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "user": "u2", "items": ["i1", "i3", "i10", "i2", "i5", "i31", "i9"]}'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-92930146-3225-43eb-a0dc-8a2028a1ffdd"> <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-fc5ad3fb-bfdd-4212-ac71-da560cc31111"> <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
@@ -362,7 +362,7 @@ http://localhost:8000/queries.json
<span class="s">"user"</span><span class="p">:</span> <span class="s">"u2"</span><span class="p">,</span>
<span class="s">"items"</span><span class="p">:</span> <span class="p">[</span><span class="s">"i1"</span><span class="p">,</span> <span class="s">"i3"</span><span class="p">,</span> <span class="s">"i10"</span><span class="p">,</span> <span class="s">"i2"</span><span class="p">,</span> <span class="s">"i5"</span><span class="p">,</span> <span class="s">"i31"</span><span class="p">,</span> <span class="s">"i9"</span><span class="p">]</span>
<span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-c1423c17-f843-471e-9cce-e1615ae080de"> <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-67dd1793-a05f-434b-a81d-37d6090b1772"> <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
@@ -385,7 +385,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-2f89c266-a435-454e-8a7c-4a1df4a99938"> <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-a5152a09-c91a-41e6-8101-61731829f374"> <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
@@ -402,7 +402,7 @@ http://localhost:8000/queries.json
<span class="s1">'items'</span> <span class="o">=></span> <span class="p">[</span><span class="s1">'i1'</span><span class="p">,</span> <span class="s1">'i3'</span><span class="p">,</span> <span class="s1">'i10'</span><span class="p">,</span> <span class="s1">'i2'</span><span class="p">,</span> <span class="s1">'i5'</span><span class="p">,</span> <span class="s1">'i31'</span><span class="p">,</span> <span class="s1">'i9'</span><span class="p">])</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-3ecee315-e182-43e8-a089-e5cb1d12c296"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-bdb208d5-150d-4276-af5e-f92f72a4b91f"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/productranking/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/productranking/quickstart/index.html.gz b/templates/productranking/quickstart/index.html.gz
index 2d25716..6f2d6a6 100644
Binary files a/templates/productranking/quickstart/index.html.gz and b/templates/productranking/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/batch-evaluator/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/batch-evaluator/index.html.gz b/templates/recommendation/batch-evaluator/index.html.gz
index d363b2c..b6efe0a 100644
Binary files a/templates/recommendation/batch-evaluator/index.html.gz and b/templates/recommendation/batch-evaluator/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/blacklist-items/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/blacklist-items/index.html.gz b/templates/recommendation/blacklist-items/index.html.gz
index 46333aa..df0e906 100644
Binary files a/templates/recommendation/blacklist-items/index.html.gz and b/templates/recommendation/blacklist-items/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/customize-data-prep/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/customize-data-prep/index.html.gz b/templates/recommendation/customize-data-prep/index.html.gz
index 2bb16a5..52da3c2 100644
Binary files a/templates/recommendation/customize-data-prep/index.html.gz and b/templates/recommendation/customize-data-prep/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/customize-serving/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/customize-serving/index.html.gz b/templates/recommendation/customize-serving/index.html.gz
index bf054e7..66ef2ee 100644
Binary files a/templates/recommendation/customize-serving/index.html.gz and b/templates/recommendation/customize-serving/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/dase/index.html.gz b/templates/recommendation/dase/index.html.gz
index 9b75c7b..e8c5932 100644
Binary files a/templates/recommendation/dase/index.html.gz and b/templates/recommendation/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/evaluation/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/evaluation/index.html.gz b/templates/recommendation/evaluation/index.html.gz
index 3ff5305..a738d0b 100644
Binary files a/templates/recommendation/evaluation/index.html.gz and b/templates/recommendation/evaluation/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/how-to/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/how-to/index.html.gz b/templates/recommendation/how-to/index.html.gz
index dbfacf5..241bc14 100644
Binary files a/templates/recommendation/how-to/index.html.gz and b/templates/recommendation/how-to/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/recommendation/quickstart/index.html b/templates/recommendation/quickstart/index.html
index c27ae8c..fcd4b59 100644
--- a/templates/recommendation/quickstart/index.html
+++ b/templates/recommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data. By default, the Recommendation Engine Template supports 2 types of events: <strong>rate</strong> and <strong>buy</strong>. A user can give a rating score to an item or buy an item. This template requires user-view-item and user-buy-item events.</p><div class="alert-message info"><p>This template can easily be customized to consider more user events such as <em>like</em>, <em>dislike</em> etc.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><
p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <h3 id='example-<strong>rate</strong>-event' class='header-anchors' >Example <strong>rate</strong> event</h3><p>A user (ID "u0") gives an item (ID "i0") a rating of 5 at <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified)</p><p>Run the following <code>curl</code> command to send the <code>rate</code> event:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-85db2416-2f27-4a99-9fbb-d957c2a10408">REST API</a></li> <li data-lang="python"><a href="#tab-5c8daec2-db66-40c0-8487-059939b0a3b6">Python SDK</a></li> <li data-lang="php"><a href="#tab-e2da44de-eca1-4ba4-b8c9-f5b1fc2508e7">PHP
SDK</a></li> <li data-lang="ruby"><a href="#tab-d96b2e85-c3e0-4b9a-9966-07a206271001">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-e3004042-aa92-4dbf-832e-90d285f95b9e">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-85db2416-2f27-4a99-9fbb-d957c2a10408"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data. By default, the Recommendation Engine Template supports 2 types of events: <strong>rate</strong> and <strong>buy</strong>. A user can give a rating score to an item or buy an item. This template requires user-view-item and user-buy-item events.</p><div class="alert-message info"><p>This template can easily be customized to consider more user events such as <em>like</em>, <em>dislike</em> etc.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more details how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><
p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <h3 id='example-<strong>rate</strong>-event' class='header-anchors' >Example <strong>rate</strong> event</h3><p>A user (ID "u0") gives an item (ID "i0") a rating of 5 at <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified)</p><p>Run the following <code>curl</code> command to send the <code>rate</code> event:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-7f137b91-e9f3-4a35-93da-1bfdff243448">REST API</a></li> <li data-lang="python"><a href="#tab-f71de661-1532-48c5-9488-f9b6f37da3d0">Python SDK</a></li> <li data-lang="php"><a href="#tab-7425d516-000e-4c88-b734-5e332a5b6e6c">PHP
SDK</a></li> <li data-lang="ruby"><a href="#tab-34ebc580-0709-477a-9ec4-a77d4efcd424">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-b8bd3bbe-631e-4b8e-b404-592b4971f670">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-7f137b91-e9f3-4a35-93da-1bfdff243448"> <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
@@ -57,7 +57,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-5c8daec2-db66-40c0-8487-059939b0a3b6"> <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-f71de661-1532-48c5-9488-f9b6f37da3d0"> <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
@@ -92,7 +92,7 @@ Your system is all ready to go.
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span><span class="p">,</span>
<span class="n">properties</span><span class="o">=</span> <span class="p">{</span> <span class="s">"rating"</span> <span class="p">:</span> <span class="nb">float</span><span class="p">(</span><span class="o"><</span><span class="n">RATING</span><span class="o">></span><span class="p">)</span> <span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-e2da44de-eca1-4ba4-b8c9-f5b1fc2508e7"> <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-7425d516-000e-4c88-b734-5e332a5b6e6c"> <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
@@ -123,7 +123,7 @@ Your system is all ready to go.
<span class="s1">'properties'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span><span class="s1">'rating'</span><span class="o">=></span> <span class="o"><</span><span class="nx">RATING</span><span class="o">></span><span class="p">)</span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-d96b2e85-c3e0-4b9a-9966-07a206271001"> <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-34ebc580-0709-477a-9ec4-a77d4efcd424"> <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
@@ -150,7 +150,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-e3004042-aa92-4dbf-832e-90d285f95b9e"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-b8bd3bbe-631e-4b8e-b404-592b4971f670"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -179,7 +179,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"rating"</span><span class="o">,</span> <span class="k">new</span> <span class="n">Float</span><span class="o">(<</span><span class="n">RATING</span><span class="o">>));</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">rateEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <h3 id='example-<strong>buy</strong>-event' class='header-anchors' >Example <strong>buy</strong> event</h3><p>A user (ID "u1") buys an item (ID "i2") at <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified)</p><p>Run the following <code>curl</code> command to send the <code>buy</code> event:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-aca50d16-fabb-4112-a7bb-8e79d46bb6b9">REST API</a></li> <li data-lang="python"><a href="#tab-b048fb64-fec5-42d6-9b6a-3a1c071c1cc4">Python SDK</a></li> <li data-lang="php"><a href="#tab-44c645e1-2965-429f-b2a1-79b7510ec8dd">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-1608b093-0b77-43cd-8c02-04587d023f9c">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-51681703-cb60-43cd-bde4-bcc90e8e26c1">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-aca50d16-fabb-4112-a7bb-8e
79d46bb6b9"> <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> <h3 id='example-<strong>buy</strong>-event' class='header-anchors' >Example <strong>buy</strong> event</h3><p>A user (ID "u1") buys an item (ID "i2") at <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified)</p><p>Run the following <code>curl</code> command to send the <code>buy</code> event:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-700a8862-2576-49c0-991f-df2b506e8977">REST API</a></li> <li data-lang="python"><a href="#tab-1d8ee028-75aa-41fe-aed7-a690a3f6f9df">Python SDK</a></li> <li data-lang="php"><a href="#tab-785c37a1-7a4c-4a9e-bf46-4e20259616bd">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-764b8bbb-bef3-4194-afbb-93717ec97df9">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-d98d6223-689e-4096-9761-fb1dfa0b5981">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-700a8862-2576-49c0-991f-df
2b506e8977"> <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
@@ -198,7 +198,7 @@ Your system is all ready to go.
"targetEntityId" : "i2",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-b048fb64-fec5-42d6-9b6a-3a1c071c1cc4"> <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-1d8ee028-75aa-41fe-aed7-a690a3f6f9df"> <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
@@ -213,7 +213,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-44c645e1-2965-429f-b2a1-79b7510ec8dd"> <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-785c37a1-7a4c-4a9e-bf46-4e20259616bd"> <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
@@ -232,7 +232,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1608b093-0b77-43cd-8c02-04587d023f9c"> <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-764b8bbb-bef3-4194-afbb-93717ec97df9"> <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
@@ -249,7 +249,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-51681703-cb60-43cd-bde4-bcc90e8e26c1"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-d98d6223-689e-4096-9761-fb1dfa0b5981"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -297,17 +297,17 @@ Your system is all ready to go.
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. To recommend 4 movies to user whose id is 1, you send this JSON <code>{ "user": "1", "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended movies. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang
="json"><a href="#tab-03706a38-5783-433f-96d4-a2e56f3273f1">REST API</a></li> <li data-lang="python"><a href="#tab-b1ac772a-77cd-4c82-bdb5-eef275d8601e">Python SDK</a></li> <li data-lang="php"><a href="#tab-d33678b9-74e1-466e-a2bd-b61470258d5a">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-69f9b40a-2df2-4c68-84a2-662f587f9830">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-0fd262eb-9adc-44d4-ac23-9115985179b7">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-03706a38-5783-433f-96d4-a2e56f3273f1"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can try to retrieve predicted results. To recommend 4 movies to user whose id is 1, you send this JSON <code>{ "user": "1", "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended movies. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control"> <li data-lang
="json"><a href="#tab-8f3852e0-4b4f-4d82-8706-59cea4c3d09d">REST API</a></li> <li data-lang="python"><a href="#tab-0cc3895e-716a-4a96-82c3-3b7fe52c7f79">Python SDK</a></li> <li data-lang="php"><a href="#tab-bd3932d7-38d4-454a-9645-dd78cd73aa2f">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-af047140-1281-4273-b744-785e1a9fa060">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-bc0e2ae7-9650-477b-a6e0-80039476b754">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-8f3852e0-4b4f-4d82-8706-59cea4c3d09d"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "user": "1", "num": 4 }'</span> http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-b1ac772a-77cd-4c82-bdb5-eef275d8601e"> <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-0cc3895e-716a-4a96-82c3-3b7fe52c7f79"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span><span class="s">"user"</span><span class="p">:</span> <span class="s">"1"</span><span class="p">,</span> <span class="s">"num"</span><span class="p">:</span> <span class="mi">4</span><span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-d33678b9-74e1-466e-a2bd-b61470258d5a"> <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-bd3932d7-38d4-454a-9645-dd78cd73aa2f"> <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
@@ -326,7 +326,7 @@ Your system is all ready to go.
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-69f9b40a-2df2-4c68-84a2-662f587f9830"> <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-af047140-1281-4273-b744-785e1a9fa060"> <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
@@ -339,7 +339,7 @@ Your system is all ready to go.
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'user'</span> <span class="o">=></span> <span class="o"><</span><span class="no">USER</span> <span class="no">ID</span><span class="o">></span><span class="p">,</span> <span class="s1">'num'</span> <span class="o">=></span> <span class="o"><</span><span class="no">NUMBER</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span><span class="o">></span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-0fd262eb-9adc-44d4-ac23-9115985179b7"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-bc0e2ae7-9650-477b-a6e0-80039476b754"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/quickstart/index.html.gz b/templates/recommendation/quickstart/index.html.gz
index 80ca914..c515337 100644
Binary files a/templates/recommendation/quickstart/index.html.gz and b/templates/recommendation/quickstart/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/reading-custom-events/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/reading-custom-events/index.html.gz b/templates/recommendation/reading-custom-events/index.html.gz
index c0b1fd8..d12e6da 100644
Binary files a/templates/recommendation/reading-custom-events/index.html.gz and b/templates/recommendation/reading-custom-events/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/recommendation/training-with-implicit-preference/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/recommendation/training-with-implicit-preference/index.html.gz b/templates/recommendation/training-with-implicit-preference/index.html.gz
index 7904857..77bccd3 100644
Binary files a/templates/recommendation/training-with-implicit-preference/index.html.gz and b/templates/recommendation/training-with-implicit-preference/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/dase/index.html.gz b/templates/similarproduct/dase/index.html.gz
index 06a58df..a075c91 100644
Binary files a/templates/similarproduct/dase/index.html.gz and b/templates/similarproduct/dase/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/how-to/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/how-to/index.html.gz b/templates/similarproduct/how-to/index.html.gz
index d095bb7..9f7abfd 100644
Binary files a/templates/similarproduct/how-to/index.html.gz and b/templates/similarproduct/how-to/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/multi-events-multi-algos/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/multi-events-multi-algos/index.html.gz b/templates/similarproduct/multi-events-multi-algos/index.html.gz
index be4ccd5..0ec1281 100644
Binary files a/templates/similarproduct/multi-events-multi-algos/index.html.gz and b/templates/similarproduct/multi-events-multi-algos/index.html.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/92846165/templates/similarproduct/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/similarproduct/quickstart/index.html b/templates/similarproduct/quickstart/index.html
index 0f5f7bc..cca82b7 100644
--- a/templates/similarproduct/quickstart/index.html
+++ b/templates/similarproduct/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | <span class="o">(</span>all<span class="o">)</span>
<span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Finished listing 2 app<span class="o">(</span>s<span class="o">)</span>.
-</pre></td></tr></tbody></table> </div> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data for the app of this Engine. By default, the Similar Product Engine Template supports 2 types of entities: <strong>user</strong> and <strong>item</strong>, and event <strong>view</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view an item. Respectively, this template requires '$set' user event, '$set' item event, and user-view-item events.</p><div class="alert-message info"><p>This template can easily be customized to consider more user events such as <em>buy</em>, <em>rate</em> and <em>like</em>.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more detai
ls how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-06a4e77b-e12c-434c-a589-38859b5c8262">REST API</a></li> <li data-lang="python"><a href="#tab-9a8b8ace-37
49-44e3-849f-a13a6c79d223">Python SDK</a></li> <li data-lang="php"><a href="#tab-71ef1c7c-a4a6-41fe-b95a-709a4f570281">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-33836049-1912-473c-a9bb-0d5e9a926389">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-882fda46-c22a-424d-a6a6-791095c41b48">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-06a4e77b-e12c-434c-a589-38859b5c8262"> <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> <p><a href="#"></a></p> <h2 id='4.-collecting-data' class='header-anchors'>4. Collecting Data</h2><p>Next, let's collect some training data for the app of this Engine. By default, the Similar Product Engine Template supports 2 types of entities: <strong>user</strong> and <strong>item</strong>, and event <strong>view</strong>. An item has the <strong>categories</strong> property, which is a list of category names (String). A user can view an item. Respectively, this template requires '$set' user event, '$set' item event, and user-view-item events.</p><div class="alert-message info"><p>This template can easily be customized to consider more user events such as <em>buy</em>, <em>rate</em> and <em>like</em>.</p></div> <p>You can send these events to PredictionIO Event Server in real-time easily by making a HTTP request or through the provided SDK. Please see <a href="/appintegration/">App Integration Overview</a> for more detai
ls how to integrate your app with SDK.</p><p>Let's try sending events to EventServer with the following <code>curl</code> commands (The corresponding SDK code is showed in other tabs).</p><p>Replace <code><ACCCESS_KEY></code> by the Access Key generated in above steps. Note that <code>localhost:7070</code> is the default URL of the Event Server.</p><p>For convenience, set your access key to the shell variable, run:</p><p><code>$ ACCESS_KEY=<ACCESS_KEY></code></p> <p><a href="#"></a></p> <p>For example, when a new user with id "u0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for this user. To send this event, run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-abb64564-2352-44f6-a47f-531f25c71a29">REST API</a></li> <li data-lang="python"><a href="#tab-933f5ec6-82
ea-4802-b5dd-816f78ed58ab">Python SDK</a></li> <li data-lang="php"><a href="#tab-5a2f3cd8-561f-454d-954c-458119b43307">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-12aee176-0687-437c-8d7e-2f8fa5384a38">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-f0917234-489a-4b17-99f1-6e29196d1d4e">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-abb64564-2352-44f6-a47f-531f25c71a29"> <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
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-9a8b8ace-3749-44e3-849f-a13a6c79d223"> <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-933f5ec6-82ea-4802-b5dd-816f78ed58ab"> <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
@@ -86,7 +86,7 @@ Your system is all ready to go.
<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">11</span><span class="p">,</span> <span class="mo">02</span><span class="p">,</span> <span class="mi">09</span><span class="p">,</span> <span class="mi">39</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">timezone</span><span class="p">(</span><span class="s">'US/Pacific'</span><span class="p">)</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-71ef1c7c-a4a6-41fe-b95a-709a4f570281"> <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-5a2f3cd8-561f-454d-954c-458119b43307"> <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
@@ -111,7 +111,7 @@ Your system is all ready to go.
<span class="s1">'entityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">USER</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-33836049-1912-473c-a9bb-0d5e9a926389"> <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-12aee176-0687-437c-8d7e-2f8fa5384a38"> <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
@@ -128,7 +128,7 @@ Your system is all ready to go.
<span class="s1">'user'</span><span class="p">,</span>
<span class="o"><</span><span class="no">USER</span> <span class="no">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-882fda46-c22a-424d-a6a6-791095c41b48"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-f0917234-489a-4b17-99f1-6e29196d1d4e"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -153,7 +153,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityType</span><span class="o">(</span><span class="s">"user"</span><span class="o">)</span>
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">USER_ID</span><span class="o">>);</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">userEvent</span><span class="o">);</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-614ed0e2-ca9a-40ed-8274-ef0894e4943c">REST API</a></li> <li data-lang="python"><a href="#tab-8b3227b4-cb1e-4139-b27e-a005bd6ad138">Python SDK</a></li> <li data-lang="php"><a href="#tab-5d771ac0-76ed-4985-ab5c-5a768e23db58">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-7c3b9c42-b817-4720-9303-dd764ac614b3">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-9ed530e2-70ea-4992-8012-7ff6a05e25e2">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-614ed0
e2-ca9a-40ed-8274-ef0894e4943c"> <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> <p>When a new item "i0" is created in your app on time <code>2014-11-02T09:39:45.618-08:00</code> (current time will be used if eventTime is not specified), you can send a <code>$set</code> event for the item. Note that the item is set with categories properties: <code>"c1"</code> and <code>"c2"</code>. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-9cb5b91c-09b4-422d-8b2f-1ecf9e94a431">REST API</a></li> <li data-lang="python"><a href="#tab-5c744fa9-2997-4bb9-bf11-fb73935259e0">Python SDK</a></li> <li data-lang="php"><a href="#tab-3696bf0a-4482-4a08-a0e1-a91f6d088de2">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-eea87a5c-7c7f-4d80-89f5-df233a1df995">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-1bebe96e-ffc4-49c2-8036-1199ad54b9ac">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-9cb5b9
1c-09b4-422d-8b2f-1ecf9e94a431"> <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
@@ -174,7 +174,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-8b3227b4-cb1e-4139-b27e-a005bd6ad138"> <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-5c744fa9-2997-4bb9-bf11-fb73935259e0"> <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
@@ -193,7 +193,7 @@ Your system is all ready to go.
<span class="s">"categories"</span> <span class="p">:</span> <span class="p">[</span><span class="s">"<CATEGORY_1>"</span><span class="p">,</span> <span class="s">"<CATEGORY_2>"</span><span class="p">]</span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-5d771ac0-76ed-4985-ab5c-5a768e23db58"> <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-3696bf0a-4482-4a08-a0e1-a91f6d088de2"> <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
@@ -214,7 +214,7 @@ Your system is all ready to go.
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-7c3b9c42-b817-4720-9303-dd764ac614b3"> <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-eea87a5c-7c7f-4d80-89f5-df233a1df995"> <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
@@ -231,7 +231,7 @@ Your system is all ready to go.
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-9ed530e2-70ea-4992-8012-7ff6a05e25e2"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-1bebe96e-ffc4-49c2-8036-1199ad54b9ac"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -244,7 +244,7 @@ Your system is all ready to go.
<span class="o">.</span><span class="na">entityId</span><span class="o">(<</span><span class="n">ITEM_ID</span><span class="o">>)</span>
<span class="o">.</span><span class="na">property</span><span class="o">(</span><span class="s">"categories"</span><span class="o">,</span> <span class="n">ImmutableList</span><span class="o">.</span><span class="na">of</span><span class="o">(</span><span class="s">"<CATEGORY_1>"</span><span class="o">,</span> <span class="s">"<CATEGORY_2>"</span><span class="o">));</span>
<span class="n">client</span><span class="o">.</span><span class="na">createEvent</span><span class="o">(</span><span class="n">itemEvent</span><span class="o">)</span>
-</pre></td> </tr></tbody></table> </div> </div> </div> <p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-7ac2accf-5ec8-447b-ac3a-6ae1e4641878">REST API</a></li> <li data-lang="python"><a href="#tab-20a2a62f-07ed-40a5-bd71-51fbea25819b">Python SDK</a></li> <li data-lang="php"><a href="#tab-6aaaf2fe-9eab-4d23-bf95-b9e3439b088b">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-e289fd9b-23d8-42d8-ac74-89f55513e869">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-b7c925d1-cd74-443e-8d8e-d523ca0683b7">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-7ac2accf-5ec8-447b-ac3a-6ae1e4641878"> <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> <p>When the user "u0" view item "i0" on time <code>2014-11-10T12:34:56.123-08:00</code> (current time will be used if eventTime is not specified), you can send a view event. Run the following <code>curl</code> command:</p><div class="tabs"> <ul class="control"> <li data-lang="json"><a href="#tab-e0072583-1c06-40f6-8c17-a59115209600">REST API</a></li> <li data-lang="python"><a href="#tab-2d6d66a0-6b9d-43f7-a622-e91615dd0ee2">Python SDK</a></li> <li data-lang="php"><a href="#tab-73e99cad-eaaa-4caa-9878-c83a424915cd">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-5d4b6963-8ecf-4345-9695-29fc7fd5dac0">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-9b561769-44ca-4227-bae9-05f4e3a1f1be">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-e0072583-1c06-40f6-8c17-a59115209600"> <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
@@ -263,7 +263,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-20a2a62f-07ed-40a5-bd71-51fbea25819b"> <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-2d6d66a0-6b9d-43f7-a622-e91615dd0ee2"> <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
@@ -280,7 +280,7 @@ Your system is all ready to go.
<span class="n">target_entity_type</span><span class="o">=</span><span class="s">"item"</span><span class="p">,</span>
<span class="n">target_entity_id</span><span class="o">=<</span><span class="n">ITEM</span> <span class="n">ID</span><span class="o">></span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-6aaaf2fe-9eab-4d23-bf95-b9e3439b088b"> <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-73e99cad-eaaa-4caa-9878-c83a424915cd"> <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
@@ -299,7 +299,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="nx">ITEM</span> <span class="nx">ID</span><span class="o">></span>
<span class="p">));</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-e289fd9b-23d8-42d8-ac74-89f55513e869"> <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-5d4b6963-8ecf-4345-9695-29fc7fd5dac0"> <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
@@ -316,7 +316,7 @@ Your system is all ready to go.
<span class="s1">'targetEntityId'</span> <span class="o">=></span> <span class="o"><</span><span class="no">ITEM</span> <span class="no">ID</span><span class="o">></span>
<span class="p">}</span>
<span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-b7c925d1-cd74-443e-8d8e-d523ca0683b7"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-9b561769-44ca-4227-bae9-05f4e3a1f1be"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4
@@ -376,19 +376,19 @@ User u10 views item i29
</pre></td></tr></tbody></table> </div> <p>When the engine is deployed successfully and running, you should see a console message similar to the following:</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</pre></td><td class="code"><pre><span class="o">[</span>INFO] <span class="o">[</span>HttpListener] Bound to /0.0.0.0:8000
<span class="o">[</span>INFO] <span class="o">[</span>MasterActor] Bind successful. Ready to serve.
-</pre></td></tr></tbody></table> </div> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To retrieve 4 items which are similar to item ID "i1". You send this JSON <code>{ "items": ["i1"], "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control
"> <li data-lang="json"><a href="#tab-2533bb43-4352-4aab-8692-9a69e168100b">REST API</a></li> <li data-lang="python"><a href="#tab-7c805ce8-0f6a-41d3-83c1-760eb9637815">Python SDK</a></li> <li data-lang="php"><a href="#tab-7cbfe3f9-bfe8-4313-b9e2-d473250cae62">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-097820b0-afe2-4383-b5ef-3dd235a974be">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-0f93763b-973f-47a6-b5bc-ef248e7bba7d">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-2533bb43-4352-4aab-8692-9a69e168100b"> <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> <p>Do not kill the deployed engine process.</p><p>By default, the deployed engine binds to <a href="http://localhost:8000"><a href="http://localhost:8000">http://localhost:8000</a></a>. You can visit that page in your web browser to check its status.</p><p><img alt="Engine Status" src="/images/engine-server-3246414b.png"/></p></p><h2 id='6.-use-the-engine' class='header-anchors'>6. Use the Engine</h2><p>Now, You can retrieve predicted results. To retrieve 4 items which are similar to item ID "i1". You send this JSON <code>{ "items": ["i1"], "num": 4 }</code> to the deployed engine and it will return a JSON of the recommended items. Simply send a query by making a HTTP request or through the <code>EngineClient</code> of an SDK.</p><p>With the deployed engine running, open another terminal and run the following <code>curl</code> command or use SDK to send the query:</p><div class="tabs"> <ul class="control
"> <li data-lang="json"><a href="#tab-cb51a38e-949c-45a2-861c-bce19c390616">REST API</a></li> <li data-lang="python"><a href="#tab-a8cd9bd7-e410-4f51-aca7-eaf879dc10ba">Python SDK</a></li> <li data-lang="php"><a href="#tab-47e9bd46-e5fa-48ce-a258-a586e67ae1bb">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-7ff9a621-8669-46bf-bb21-a73583830d34">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-d6c16456-82c5-4fda-9e82-7895b2d2b3f0">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-cb51a38e-949c-45a2-861c-bce19c390616"> <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</pre></td> <td class="code"><pre><span class="gp">$ </span>curl -H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s1">'{ "items": ["i1"], "num": 4 }'</span> <span class="se">\</span>
http://localhost:8000/queries.json
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-7c805ce8-0f6a-41d3-83c1-760eb9637815"> <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-a8cd9bd7-e410-4f51-aca7-eaf879dc10ba"> <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</pre></td> <td class="code"><pre><span class="kn">import</span> <span class="nn">predictionio</span>
<span class="n">engine_client</span> <span class="o">=</span> <span class="n">predictionio</span><span class="o">.</span><span class="n">EngineClient</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="s">"http://localhost:8000"</span><span class="p">)</span>
<span class="k">print</span> <span class="n">engine_client</span><span class="o">.</span><span class="n">send_query</span><span class="p">({</span><span class="s">"items"</span><span class="p">:</span> <span class="p">[</span><span class="s">"i1"</span><span class="p">],</span> <span class="s">"num"</span><span class="p">:</span> <span class="mi">4</span><span class="p">})</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-7cbfe3f9-bfe8-4313-b9e2-d473250cae62"> <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-47e9bd46-e5fa-48ce-a258-a586e67ae1bb"> <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
@@ -407,7 +407,7 @@ http://localhost:8000/queries.json
<span class="nb">print_r</span><span class="p">(</span><span class="nv">$response</span><span class="p">);</span>
<span class="cp">?></span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-097820b0-afe2-4383-b5ef-3dd235a974be"> <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-7ff9a621-8669-46bf-bb21-a73583830d34"> <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
@@ -420,7 +420,7 @@ http://localhost:8000/queries.json
<span class="n">response</span> <span class="o">=</span> <span class="n">client</span><span class="p">.</span><span class="nf">send_query</span><span class="p">(</span><span class="s1">'items'</span> <span class="o">=></span> <span class="p">[</span><span class="s1">'i1'</span><span class="p">],</span> <span class="s1">'num'</span> <span class="o">=></span> <span class="mi">4</span><span class="p">)</span>
<span class="nb">puts</span> <span class="n">response</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-0f93763b-973f-47a6-b5bc-ef248e7bba7d"> <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> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-d6c16456-82c5-4fda-9e82-7895b2d2b3f0"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1
2
3
4