predictionio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [1/9] incubator-predictionio-site git commit: Documentation based on apache/incubator-predictionio#7169b696aff69f67de08c0fe3df98f9230f57e9f
Date Fri, 01 Dec 2017 05:38:15 GMT
Repository: incubator-predictionio-site
Updated Branches:
  refs/heads/asf-site 9e2aa2d4b -> 598a5db4f


http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/598a5db4/templates/similarproduct/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/similarproduct/quickstart/index.html.gz b/templates/similarproduct/quickstart/index.html.gz
index 626b001..30b2086 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/598a5db4/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 cf43ba8..f2c9282 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/598a5db4/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 52426e4..583034a 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/598a5db4/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 4d25f1c..7542e71 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/598a5db4/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 b2165b7..2894798 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/598a5db4/templates/vanilla/dase/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/vanilla/dase/index.html.gz b/templates/vanilla/dase/index.html.gz
index 19927f1..d0c53e7 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/598a5db4/templates/vanilla/quickstart/index.html
----------------------------------------------------------------------
diff --git a/templates/vanilla/quickstart/index.html b/templates/vanilla/quickstart/index.html
index e309138..fde1ae2 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 &#39;q&#39;:
<code>{ &quot;q&quot; : &quot;foo&quot; }</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-5fd62885-6d91-4201-ad1f-dcf41bc441dd">REST
API</a></li> <li data-lang="python"><a href="#tab-76c8cb3a-55b7-4b
 1f-950b-376341939e9b">Python SDK</a></li> <li data-lang="php"><a
href="#tab-cceef567-9613-4219-9cc3-74d29d309430">PHP SDK</a></li> <li data-lang="ruby"><a
href="#tab-3c39b151-af7f-43b6-a578-1d22c7cdef40">Ruby SDK</a></li> <li data-lang="java"><a
href="#tab-e21e81b9-14dc-49fd-b0ca-8059966f84b5">Java SDK</a></li> </ul>
<div data-tab="REST API" data-lang="json" id="tab-5fd62885-6d91-4201-ad1f-dcf41bc441dd">
<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 &#39;q&#39;:
<code>{ &quot;q&quot; : &quot;foo&quot; }</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-8b50118e-ea9b-4e48-b44b-1a5c5654b09e">REST
API</a></li> <li data-lang="python"><a href="#tab-0b4062c2-8019-44
 d7-92dd-3e27a2c8d5a3">Python SDK</a></li> <li data-lang="php"><a
href="#tab-9faf872c-2b19-4056-b0cd-c8d4b34ba2ee">PHP SDK</a></li> <li data-lang="ruby"><a
href="#tab-23c17ab1-129b-4042-84f0-de27a0bc27ab">Ruby SDK</a></li> <li data-lang="java"><a
href="#tab-883f1417-dcaa-42b9-8cbe-93c1a7b0b8b8">Java SDK</a></li> </ul>
<div data-tab="REST API" data-lang="json" id="tab-8b50118e-ea9b-4e48-b44b-1a5c5654b09e">
<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-76c8cb3a-55b7-4b1f-950b-376341939e9b">
<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-0b4062c2-8019-44d7-92dd-3e27a2c8d5a3">
<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-cceef567-9613-4219-9cc3-74d29d309430">
<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-9faf872c-2b19-4056-b0cd-c8d4b34ba2ee">
<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">?&gt;</span>
-</pre></td> </tr></tbody></table> </div> </div>
<div data-tab="Ruby SDK" data-lang="ruby" id="tab-3c39b151-af7f-43b6-a578-1d22c7cdef40">
<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-23c17ab1-129b-4042-84f0-de27a0bc27ab">
<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">=&gt;</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-e21e81b9-14dc-49fd-b0ca-8059966f84b5">
<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-883f1417-dcaa-42b9-8cbe-93c1a7b0b8b8">
<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/598a5db4/templates/vanilla/quickstart/index.html.gz
----------------------------------------------------------------------
diff --git a/templates/vanilla/quickstart/index.html.gz b/templates/vanilla/quickstart/index.html.gz
index 2ef1817..4394f54 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/598a5db4/tryit/index.html.gz
----------------------------------------------------------------------
diff --git a/tryit/index.html.gz b/tryit/index.html.gz
index c0de49b..3bd0557 100644
Binary files a/tryit/index.html.gz and b/tryit/index.html.gz differ


Mime
View raw message