http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/start/deploy/index.html
----------------------------------------------------------------------
diff --git a/start/deploy/index.html b/start/deploy/index.html
index a086386..0bf3fe9 100644
--- a/start/deploy/index.html
+++ b/start/deploy/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/start/deploy/index.html.gz
----------------------------------------------------------------------
diff --git a/start/deploy/index.html.gz b/start/deploy/index.html.gz
index c512fec..b006caa 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/042e40d6/start/download/index.html
----------------------------------------------------------------------
diff --git a/start/download/index.html b/start/download/index.html
index b23273c..a3e3210 100644
--- a/start/download/index.html
+++ b/start/download/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/start/download/index.html.gz
----------------------------------------------------------------------
diff --git a/start/download/index.html.gz b/start/download/index.html.gz
index a22b1d1..6248301 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/042e40d6/start/index.html
----------------------------------------------------------------------
diff --git a/start/index.html b/start/index.html
index 14c50e0..c39c76b 100644
--- a/start/index.html
+++ b/start/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/start/index.html.gz
----------------------------------------------------------------------
diff --git a/start/index.html.gz b/start/index.html.gz
index fb8ad47..a80badf 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/042e40d6/stylesheets/application-eccfc6cb.css.gz
----------------------------------------------------------------------
diff --git a/stylesheets/application-eccfc6cb.css.gz 
b/stylesheets/application-eccfc6cb.css.gz
index a7af561..ac47181 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/042e40d6/support/index.html
----------------------------------------------------------------------
diff --git a/support/index.html b/support/index.html
index ea8c948..ae8d659 100644
--- a/support/index.html
+++ b/support/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/support/index.html.gz
----------------------------------------------------------------------
diff --git a/support/index.html.gz b/support/index.html.gz
index dff2a74..4eab88b 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/042e40d6/system/anotherdatastore/index.html
----------------------------------------------------------------------
diff --git a/system/anotherdatastore/index.html 
b/system/anotherdatastore/index.html
index 92fc3ee..625c9bc 100644
--- a/system/anotherdatastore/index.html
+++ b/system/anotherdatastore/index.html
@@ -36,4 +36,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/system/anotherdatastore/index.html.gz
----------------------------------------------------------------------
diff --git a/system/anotherdatastore/index.html.gz 
b/system/anotherdatastore/index.html.gz
index 32ff724..09cee9f 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/042e40d6/system/deploy-cloudformation/index.html
----------------------------------------------------------------------
diff --git a/system/deploy-cloudformation/index.html 
b/system/deploy-cloudformation/index.html
index 5d8eea9..278d2b4 100644
--- a/system/deploy-cloudformation/index.html
+++ b/system/deploy-cloudformation/index.html
@@ -5,4 +5,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/system/deploy-cloudformation/index.html.gz
----------------------------------------------------------------------
diff --git a/system/deploy-cloudformation/index.html.gz 
b/system/deploy-cloudformation/index.html.gz
index 52d476d..b4e58a6 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/042e40d6/system/index.html
----------------------------------------------------------------------
diff --git a/system/index.html b/system/index.html
index 32ca9d6..36f6669 100644
--- a/system/index.html
+++ b/system/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/system/index.html.gz
----------------------------------------------------------------------
diff --git a/system/index.html.gz b/system/index.html.gz
index e5e169f..22eabac 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/042e40d6/templates/classification/add-algorithm/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/add-algorithm/index.html 
b/templates/classification/add-algorithm/index.html
index 9c9a767..41ac2c5 100644
--- a/templates/classification/add-algorithm/index.html
+++ b/templates/classification/add-algorithm/index.html
@@ -144,4 +144,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/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 b369a91..c4885ef 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/042e40d6/templates/classification/dase/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/dase/index.html 
b/templates/classification/dase/index.html
index 8d8aa86..ee8af48 100644
--- a/templates/classification/dase/index.html
+++ b/templates/classification/dase/index.html
@@ -215,4 +215,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/templates/classification/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/dase/index.html.gz 
b/templates/classification/dase/index.html.gz
index 358cfc4..3e3b247 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/042e40d6/templates/classification/how-to/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/how-to/index.html 
b/templates/classification/how-to/index.html
index 541cccf..69caf5e 100644
--- a/templates/classification/how-to/index.html
+++ b/templates/classification/how-to/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/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 5ee9de7..b68cabf 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/042e40d6/templates/classification/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/quickstart/index.html 
b/templates/classification/quickstart/index.html
index 52b548b..01ed1e6 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&#39;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 &#39;$set&#39; 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&#39;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>&lt;ACCCESS_KEY&gt;</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=&lt;ACCESS_KEY&gt;</code></p> <p><a href="#"></a></p> <p>To set 
properties &quot;attr0&quot;, &quot;attr1&quot;, &quot;attr2&quot; and 
&quot;plan&quot; for user &quot;u0&quot; 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-8f80ca4d-38cb-42fb-bddd-4597a2a6d767">REST API</a></li> <li 
data-lang="python"><a href="#tab-945d2345-8692-4c82-99d8-b622c01000ef">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-b7bcad65-42c3-4f84-9718-a00cb5af8e74">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-be284a48-b922-4001-ab8a-6f55ea877658">Ruby 
SDK</a></li> <li data-lang="java"><a href="#
 tab-d222717a-f391-4c9e-978f-91a575916a63">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" 
id="tab-8f80ca4d-38cb-42fb-bddd-4597a2a6d767"> <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&#39;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 &#39;$set&#39; 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&#39;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>&lt;ACCCESS_KEY&gt;</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=&lt;ACCESS_KEY&gt;</code></p> <p><a href="#"></a></p> <p>To set 
properties &quot;attr0&quot;, &quot;attr1&quot;, &quot;attr2&quot; and 
&quot;plan&quot; for user &quot;u0&quot; 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-07c82a2c-9656-4a8b-89dc-0c4197b72e45">REST API</a></li> <li 
data-lang="python"><a href="#tab-d54e941c-9760-4f14-99f6-d24087a840ad">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-379c3226-1e34-4098-875c-9714730306d1">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-8e1c6618-a624-4b37-ae58-cac8360d87ec">Ruby 
SDK</a></li> <li data-lang="java"><a href="#
 tab-12f132bf-6dd2-4ad6-8d24-8ab5508dc2b7">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" 
id="tab-07c82a2c-9656-4a8b-89dc-0c4197b72e45"> <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-945d2345-8692-4c82-99d8-b622c01000ef"> <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-d54e941c-9760-4f14-99f6-d24087a840ad"> <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">&lt;</span><span 
class="n">VALUE</span> <span class="n">OF</span> <span 
class="n">PLAN</span><span class="o">&gt;</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-b7bcad65-42c3-4f84-9718-a00cb5af8e74"> <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-379c3226-1e34-4098-875c-9714730306d1"> <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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" 
data-lang="ruby" id="tab-be284a48-b922-4001-ab8a-6f55ea877658"> <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-8e1c6618-a624-4b37-ae58-cac8360d87ec"> <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-d222717a-f391-4c9e-978f-91a575916a63"> <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-12f132bf-6dd2-4ad6-8d24-8ab5508dc2b7"> <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">&lt;</span><span class="n">VALUE</span> <span class="n">OF</span> 
<span class="n">PLAN</span><span class="o">&gt;</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 
&quot;attr0&quot;, &quot;attr1&quot; and &quot;attr2&quot;, and 
&quot;plan&quot; for user &quot;u1&quot; 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-7b12d787-8194-42b6-878f-3de912212de4">REST 
API</a></li> <li data-lang="python"><a 
href="#tab-1fb8fb6f-7ce2-4ad2-b8d6-704b82b4fd8e">Python SDK</a></li> <li 
data-lang="php"><a href="#tab-da0addcb-4d48-47fe-9756-a097e3c7b120">PHP 
SDK</a></li> <li data-lang="ruby"><a 
href="#tab-3204a131-e013-43a8-9633-0f379dbfb593">Ruby SDK</a></li> <li 
data-lang="java"><a href="#tab-8e12dee4-67f3-43c2-b275-d0bc5074f576">Java 
SDK</a></li> </ul> <div data-tab
 ="REST API" data-lang="json" id="tab-7b12d787-8194-42b6-878f-3de912212de4"> 
<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 
&quot;attr0&quot;, &quot;attr1&quot; and &quot;attr2&quot;, and 
&quot;plan&quot; for user &quot;u1&quot; 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-ca4e61b0-18c4-46e8-b4f1-625942c6207f">REST 
API</a></li> <li data-lang="python"><a 
href="#tab-a315d07b-81f6-4fa6-b33e-f3671c902724">Python SDK</a></li> <li 
data-lang="php"><a href="#tab-e193e502-b4af-46b1-9ca4-b87a3e681dc1">PHP 
SDK</a></li> <li data-lang="ruby"><a 
href="#tab-90ef0921-23bd-4b3b-b674-321cc261c90d">Ruby SDK</a></li> <li 
data-lang="java"><a href="#tab-9ab94ade-7666-407d-a25c-34d9652103ba">Java 
SDK</a></li> </ul> <div data-tab
 ="REST API" data-lang="json" id="tab-ca4e61b0-18c4-46e8-b4f1-625942c6207f"> 
<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-1fb8fb6f-7ce2-4ad2-b8d6-704b82b4fd8e"> <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-a315d07b-81f6-4fa6-b33e-f3671c902724"> <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">&lt;</span><span 
class="n">VALUE</span> <span class="n">OF</span> <span 
class="n">PLAN</span><span class="o">&gt;</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-da0addcb-4d48-47fe-9756-a097e3c7b120"> <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-e193e502-b4af-46b1-9ca4-b87a3e681dc1"> <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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" 
data-lang="ruby" id="tab-3204a131-e013-43a8-9633-0f379dbfb593"> <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-90ef0921-23bd-4b3b-b674-321cc261c90d"> <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-8e12dee4-67f3-43c2-b275-d0bc5074f576"> <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-9ab94ade-7666-407d-a25c-34d9652103ba"> <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>{ &quot;attr0&quot;:2, &quot;attr1&quot;:0, &quot;attr2&quot;: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-3bc740ac-b23e-4db1-98bb-9e3e1b4eea20">REST 
API</a></li> <li data-lang="python"><a 
href="#tab-0e61f488-03c4-428f-a975-4aa087528161">Python SDK</a></li> <li 
data-lang="php"><a href="#tab-5c90fabf-2c4b-4bfc-92b8-859f0d4bda90">PHP 
SDK</a></li> <li data-lang="ruby"><a 
href="#tab-d551e29c-ac96-48a4-b503-27f41fa7b4ea">Ruby SDK</a></li> <li 
data-lang="java"><a href="#tab-20da8f0a-b790-48d0-8746-8b95e067d8d7">Java 
SDK</a></li> </ul> <div data-tab="REST API" data-lang="bash" 
id="tab-3bc740ac-b23e-4db1-98bb-9e3e1b4eea20"> <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>{ &quot;attr0&quot;:2, &quot;attr1&quot;:0, &quot;attr2&quot;: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-0bbf1369-b01b-4953-82bd-381b76d21661">REST 
API</a></li> <li data-lang="python"><a 
href="#tab-bc1c4d28-f033-424a-981d-26470454d3cb">Python SDK</a></li> <li 
data-lang="php"><a href="#tab-04e4fdf8-8620-4f5d-b407-8940deee389d">PHP 
SDK</a></li> <li data-lang="ruby"><a 
href="#tab-4a4fbd69-34bc-44be-abf6-20ab0cde0885">Ruby SDK</a></li> <li 
data-lang="java"><a href="#tab-87c53e6a-2c4d-4526-b423-cb14a34e4de9">Java 
SDK</a></li> </ul> <div data-tab="REST API" data-lang="bash" 
id="tab-0bbf1369-b01b-4953-82bd-381b76d21661"> <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-0e61f488-03c4-428f-a975-4aa087528161"> <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-bc1c4d28-f033-424a-981d-26470454d3cb"> <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-5c90fabf-2c4b-4bfc-92b8-859f0d4bda90"> <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-04e4fdf8-8620-4f5d-b407-8940deee389d"> <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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" 
data-lang="ruby" id="tab-d551e29c-ac96-48a4-b503-27f41fa7b4ea"> <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-4a4fbd69-34bc-44be-abf6-20ab0cde0885"> <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">=&gt;</span> <span 
class="mi">2</span><span class="p">,</span> <span class="s1">'attr1'</span> 
<span class="o">=&gt;</span> <span class="mi">0</span><span class="p">,</span> 
<span class="s1">'attr2'</span> <span class="o">=&gt;</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-20da8f0a-b790-48d0-8746-8b95e067d8d7"> <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-87c53e6a-2c4d-4526-b423-cb14a34e4de9"> <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
@@ -570,4 +570,4 @@ Your system is all ready to go.
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/templates/classification/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/classification/quickstart/index.html.gz 
b/templates/classification/quickstart/index.html.gz
index 217152a..9280ae4 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/042e40d6/templates/classification/reading-custom-properties/index.html
----------------------------------------------------------------------
diff --git a/templates/classification/reading-custom-properties/index.html 
b/templates/classification/reading-custom-properties/index.html
index 68e4112..0a8e72d 100644
--- a/templates/classification/reading-custom-properties/index.html
+++ b/templates/classification/reading-custom-properties/index.html
@@ -65,4 +65,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/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 c3ac2a8..5c7b481 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/042e40d6/templates/complementarypurchase/dase/index.html
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/dase/index.html 
b/templates/complementarypurchase/dase/index.html
index b33a751..f3f2c44 100644
--- a/templates/complementarypurchase/dase/index.html
+++ b/templates/complementarypurchase/dase/index.html
@@ -413,4 +413,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/templates/complementarypurchase/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/dase/index.html.gz 
b/templates/complementarypurchase/dase/index.html.gz
index 477d794..141ea4c 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/042e40d6/templates/complementarypurchase/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/quickstart/index.html 
b/templates/complementarypurchase/quickstart/index.html
index 9b6a46e..6887330 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&#39;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 &#39;basket&#39;, which is configured by the 
&#39;basketWindow&#39; 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&#39;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>&lt;ACCCESS_KEY&gt;</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=&lt;ACCESS_KEY&gt;</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-22ea1d3f-8e9e-4238-8584-764a70b129ae">REST API</a></li> <li 
data-lang="python"><a href="#tab-eeb0923e-7e19-4a3c-8361-42e64404ca7a">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-8083636a-b85a-4596-933a-147698d64471">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-95238fb8-c24b-42e9-8001-0db7cd226a98">Ruby 
SDK</a></li> <li data-lang="java"><a 
href="#tab-9e80b386-25f5-4eb9-b81e-796788d930ae">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" 
id="tab-22ea1d3f-8e9e-4238-8584-764a70b129ae"> <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&#39;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 &#39;basket&#39;, which is configured by the 
&#39;basketWindow&#39; 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&#39;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>&lt;ACCCESS_KEY&gt;</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=&lt;ACCESS_KEY&gt;</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-222849e1-4595-4126-b7a3-d3be263b1bd5">REST API</a></li> <li 
data-lang="python"><a href="#tab-3bde59fe-0016-49cb-90bb-c665d3ab2dd3">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-d6e8fb16-379b-435e-9d84-1f0bb03a4891">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-fcb7ed49-3b40-4d57-bb94-2f9bc8a4b94b">Ruby 
SDK</a></li> <li data-lang="java"><a 
href="#tab-b1607297-fdcc-4ed4-a988-c8bc6f14ce4c">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" 
id="tab-222849e1-4595-4126-b7a3-d3be263b1bd5"> <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-eeb0923e-7e19-4a3c-8361-42e64404ca7a"> <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-3bde59fe-0016-49cb-90bb-c665d3ab2dd3"> <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">=&lt;</span><span 
class="n">ITEM</span> <span class="n">ID</span><span class="o">&gt;</span><span 
class="p">,</span>
   <span class="n">event_time</span><span class="o">=&lt;</span><span 
class="n">EVENT_TIME</span><span class="o">&gt;</span>
 <span class="p">)</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" 
data-lang="php" id="tab-8083636a-b85a-4596-933a-147698d64471"> <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-d6e8fb16-379b-435e-9d84-1f0bb03a4891"> <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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" 
data-lang="ruby" id="tab-95238fb8-c24b-42e9-8001-0db7cd226a98"> <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-fcb7ed49-3b40-4d57-bb94-2f9bc8a4b94b"> <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">=&gt;</span> <span 
class="o">&lt;</span><span class="no">EVENT_TIME</span><span 
class="o">&gt;</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-9e80b386-25f5-4eb9-b81e-796788d930ae"> <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-b1607297-fdcc-4ed4-a988-c8bc6f14ce4c"> <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 
&quot;s2i1&quot;. You can sending this JSON &#39;{ &quot;items&quot; : 
[&quot;s2i1&quot;], &quot;num&quot; : 3 }&#39; 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 [&quot;A&quot;, &quot;B&qu
 ot;], then the engine will use [&quot;A&quot;], [&quot;B&quot;], and 
[&quot;A&quot;, &quot;B&quot;] 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-6f5a4784-ebaf-4e07-b3b5-623911eec0e5">REST API</a></li> <li 
data-lang="python"><a href="#tab-2207dd71-0134-45c3-83d0-1789a848006b">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-570e502e-f347-4fe0-80f7-439b8e598bb0">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-9b7afdfe-ed13-43ec-8dfb-9f7f50ed8bb8">Ruby 
SDK</a></li> <li data-lang="java"><a 
href="#tab-53fa6918-4703-4e81-a0e0-7465dcf9ed3b">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" id="tab-6f5a4784-ebaf-4
 e07-b3b5-623911eec0e5"> <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 
&quot;s2i1&quot;. You can sending this JSON &#39;{ &quot;items&quot; : 
[&quot;s2i1&quot;], &quot;num&quot; : 3 }&#39; 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 [&quot;A&quot;, &quot;B&qu
 ot;], then the engine will use [&quot;A&quot;], [&quot;B&quot;], and 
[&quot;A&quot;, &quot;B&quot;] 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-0e4d4e3f-d219-4ac9-a7dd-a9740d7b043f">REST API</a></li> <li 
data-lang="python"><a href="#tab-d4b82afa-d589-4f00-aaa8-f678f0414b83">Python 
SDK</a></li> <li data-lang="php"><a 
href="#tab-d423fe22-8ff4-436e-b8d5-c98779cda9e5">PHP SDK</a></li> <li 
data-lang="ruby"><a href="#tab-19651a4d-c5bb-4130-95d3-19792a13dd6b">Ruby 
SDK</a></li> <li data-lang="java"><a 
href="#tab-49980a90-49fc-405a-8a4d-39701867fab2">Java SDK</a></li> </ul> <div 
data-tab="REST API" data-lang="json" id="tab-0e4d4e3f-d219-4
 ac9-a7dd-a9740d7b043f"> <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-2207dd71-0134-45c3-83d0-1789a848006b"> <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-d4b82afa-d589-4f00-aaa8-f678f0414b83"> <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-570e502e-f347-4fe0-80f7-439b8e598bb0"> <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-d423fe22-8ff4-436e-b8d5-c98779cda9e5"> <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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" 
data-lang="ruby" id="tab-9b7afdfe-ed13-43ec-8dfb-9f7f50ed8bb8"> <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-19651a4d-c5bb-4130-95d3-19792a13dd6b"> <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-53fa6918-4703-4e81-a0e0-7465dcf9ed3b"> <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-49980a90-49fc-405a-8a4d-39701867fab2"> <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
@@ -435,4 +435,4 @@ http://localhost:8000/queries.json
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/templates/complementarypurchase/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/complementarypurchase/quickstart/index.html.gz 
b/templates/complementarypurchase/quickstart/index.html.gz
index 9e89dd2..e17c920 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/042e40d6/templates/ecommercerecommendation/adjust-score/index.html
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/adjust-score/index.html 
b/templates/ecommercerecommendation/adjust-score/index.html
index 2987b92..b79f08f 100644
--- a/templates/ecommercerecommendation/adjust-score/index.html
+++ b/templates/ecommercerecommendation/adjust-score/index.html
@@ -248,4 +248,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/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 2d55099..79f4356 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/042e40d6/templates/ecommercerecommendation/dase/index.html
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/dase/index.html 
b/templates/ecommercerecommendation/dase/index.html
index cfe3ada..443956c 100644
--- a/templates/ecommercerecommendation/dase/index.html
+++ b/templates/ecommercerecommendation/dase/index.html
@@ -803,4 +803,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/templates/ecommercerecommendation/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/dase/index.html.gz 
b/templates/ecommercerecommendation/dase/index.html.gz
index 67296ba..10dceb5 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/042e40d6/templates/ecommercerecommendation/how-to/index.html
----------------------------------------------------------------------
diff --git a/templates/ecommercerecommendation/how-to/index.html 
b/templates/ecommercerecommendation/how-to/index.html
index 7504755..d1df6f9 100644
--- a/templates/ecommercerecommendation/how-to/index.html
+++ b/templates/ecommercerecommendation/how-to/index.html
@@ -3,4 +3,4 @@
 
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');
 
-_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-a6acb1f5.js"></script></body></html>
\ No newline at end of file
+_st('install','HaUfpXXV87xoB_zzCQ45');</script><script 
src="/javascripts/application-3058a372.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/042e40d6/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 1ab5c6a..b4a58e7 100644
Binary files a/templates/ecommercerecommendation/how-to/index.html.gz and 
b/templates/ecommercerecommendation/how-to/index.html.gz differ

Reply via email to