Repository: incubator-predictionio-site Updated Branches: refs/heads/asf-site 92846165f -> 2efadd079
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/2efadd07/templates/similarproduct/quickstart/index.html.gz ---------------------------------------------------------------------- diff --git a/templates/similarproduct/quickstart/index.html.gz b/templates/similarproduct/quickstart/index.html.gz index 1266606..77073f0 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/2efadd07/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 a4c3ffd..99c955f 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/2efadd07/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 590221f..4a51def 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/2efadd07/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 dcfcfd7..46685fb 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/2efadd07/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 bd70cc3..6911206 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/2efadd07/templates/vanilla/dase/index.html.gz ---------------------------------------------------------------------- diff --git a/templates/vanilla/dase/index.html.gz b/templates/vanilla/dase/index.html.gz index 6560a31..19f52c3 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/2efadd07/templates/vanilla/quickstart/index.html ---------------------------------------------------------------------- diff --git a/templates/vanilla/quickstart/index.html b/templates/vanilla/quickstart/index.html index 183c918..f102033 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-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 +</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-d579961b-b25d-43e9-ac88-ddf3602ca2a2">REST API</a></li> <li data-lang="python"><a href="#tab-fd81b4e1-9d11-4a f0-8a90-572b9ed047db">Python SDK</a></li> <li data-lang="php"><a href="#tab-0fe09c3e-a630-438f-878e-8613df08dadf">PHP SDK</a></li> <li data-lang="ruby"><a href="#tab-f396df1d-62b1-412c-a6cd-7ed351008782">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-ce01ac84-3c07-45bd-ab94-ad98e743a2dd">Java SDK</a></li> </ul> <div data-tab="REST API" data-lang="json" id="tab-d579961b-b25d-43e9-ac88-ddf3602ca2a2"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-fd81b4e1-9d11-4af0-8a90-572b9ed047db"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-0fe09c3e-a630-438f-878e-8613df08dadf"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-f396df1d-62b1-412c-a6cd-7ed351008782"> <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-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 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-ce01ac84-3c07-45bd-ab94-ad98e743a2dd"> <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/2efadd07/templates/vanilla/quickstart/index.html.gz ---------------------------------------------------------------------- diff --git a/templates/vanilla/quickstart/index.html.gz b/templates/vanilla/quickstart/index.html.gz index 07517fc..84929ab 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/2efadd07/tryit/index.html.gz ---------------------------------------------------------------------- diff --git a/tryit/index.html.gz b/tryit/index.html.gz index e0b3f68..a76f8e6 100644 Binary files a/tryit/index.html.gz and b/tryit/index.html.gz differ
