Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1B6DF200D2B for ; Thu, 19 Oct 2017 05:11:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 19E80160BEB; Thu, 19 Oct 2017 03:11:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 108FD160BEA for ; Thu, 19 Oct 2017 05:11:40 +0200 (CEST) Received: (qmail 6818 invoked by uid 500); 19 Oct 2017 03:11:40 -0000 Mailing-List: contact commits-help@predictionio.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@predictionio.apache.org Delivered-To: mailing list commits@predictionio.apache.org Received: (qmail 6804 invoked by uid 99); 19 Oct 2017 03:11:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 03:11:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4AAA818034F for ; Thu, 19 Oct 2017 03:11:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id t_ekQlHWMpBI for ; Thu, 19 Oct 2017 03:11:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 4E39A5F3DE for ; Thu, 19 Oct 2017 03:11:32 +0000 (UTC) Received: (qmail 6126 invoked by uid 99); 19 Oct 2017 03:11:31 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 03:11:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E0C8EDFF5A; Thu, 19 Oct 2017 03:11:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: git-site-role@apache.org To: commits@predictionio.incubator.apache.org Date: Thu, 19 Oct 2017 03:11:30 -0000 Message-Id: <917b432c46c34f68a87604ef88325c87@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/8] incubator-predictionio-site git commit: Documentation based on apache/incubator-predictionio#6be4ab5883611dd4dc4c30c68535167359a78d3e archived-at: Thu, 19 Oct 2017 03:11:42 -0000 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.

When the engine is deployed successfully and running, you should see a console message similar to the following:

1
 2
[INFO] [HttpListener] Bound to /0.0.0.0:8000
 [INFO] [MasterActor] Bind successful. Ready to serve.
-

Do not kill the deployed engine process.

By default, the deployed engine binds to http://localhost:8000. You can visit that page in your web browser to check its status.

Engine Status

6. Use the Engine

Now, You can try to retrieve predicted results. The engine accepts JSON query with the field 'q': { "q" : "foo" }. A prefix is added to the query data and return as PredictedResult.

With the deployed engine running, open another terminal and run the following curl command or use SDK to send the query:

1
+

Do not kill the deployed engine process.

By default, the deployed engine binds to http://localhost:8000. You can visit that page in your web browser to check its status.

Engine Status

6. Use the Engine

Now, You can try to retrieve predicted results. The engine accepts JSON query with the field 'q': { "q" : "foo" }. A prefix is added to the query data and return as PredictedResult.

With the deployed engine running, open another terminal and run the following curl command or use SDK to send the query:

1
 2
 3
$ curl -H "Content-Type: application/json" \
 -d '{ "q": "foo" }' http://localhost:8000/queries.json
 
-
1
+
1
 2
 3
import predictionio
 engine_client = predictionio.EngineClient(url="http://localhost:8000")
 print engine_client.send_query({ "q": "foo" })
-
1
+
1
 2
 3
 4
@@ -83,7 +83,7 @@ Your system is all ready to go.
 print_r($response);
 
 ?>
-
1
+
1
 2
 3
 4
@@ -96,7 +96,7 @@ Your system is all ready to go.
 response = client.send_query('q' => 'foo')
 
 puts response
-
1
+
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