From commits-return-5527-archive-asf-public=cust-asf.ponee.io@predictionio.apache.org Sat Nov 3 21:48:51 2018
Return-Path:
X-Original-To: archive-asf-public@cust-asf.ponee.io
Delivered-To: archive-asf-public@cust-asf.ponee.io
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by mx-eu-01.ponee.io (Postfix) with SMTP id 086C718066B
for ; Sat, 3 Nov 2018 21:48:47 +0100 (CET)
Received: (qmail 66677 invoked by uid 500); 3 Nov 2018 20:48:47 -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 66668 invoked by uid 99); 3 Nov 2018 20:48:47 -0000
Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70)
by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2018 20:48:47 +0000
Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33)
id 18E3D81E0E; Sat, 3 Nov 2018 20:48:46 +0000 (UTC)
Date: Sat, 03 Nov 2018 20:48:46 +0000
To: "commits@predictionio.apache.org"
Subject: [predictionio-site] branch asf-site updated: Documentation based on
apache/predictionio#a956efc2a652ad0842cb14a14f9d76b164bd0dd6
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <154127812601.10017.2760579663723162222@gitbox.apache.org>
From: git-site-role@apache.org
X-Git-Host: gitbox.apache.org
X-Git-Repo: predictionio-site
X-Git-Refname: refs/heads/asf-site
X-Git-Reftype: branch
X-Git-Oldrev: e0e1c9a0973993212c042fd9e749426379550672
X-Git-Newrev: db417de9e0591570684a33e9d26e535fb74a775f
X-Git-Rev: db417de9e0591570684a33e9d26e535fb74a775f
X-Git-NotificationType: ref_changed_plus_diff
X-Git-Multimail-Version: 1.5.dev
Auto-Submitted: auto-generated
This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/predictionio-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new db417de Documentation based on apache/predictionio#a956efc2a652ad0842cb14a14f9d76b164bd0dd6
db417de is described below
commit db417de9e0591570684a33e9d26e535fb74a775f
Author: jenkins
AuthorDate: Sat Nov 3 20:48:44 2018 +0000
Documentation based on apache/predictionio#a956efc2a652ad0842cb14a14f9d76b164bd0dd6
---
archived/launch-aws/index.html | 6 +
datacollection/batchimport/index.html | 4 +-
datacollection/channel/index.html | 6 +-
datacollection/eventapi/index.html | 20 +-
gallery/template-gallery/index.html | 2 +-
install/index.html | 2 +-
install/install-docker/index.html | 54 ++++
install/launch-aws/index.html | 6 -
samples/tabs/index.html | 18 +-
sitemap.xml | 272 +++++++++++----------
templates/classification/quickstart/index.html | 30 +--
.../complementarypurchase/quickstart/index.html | 20 +-
.../ecommercerecommendation/quickstart/index.html | 60 ++---
.../quickstart/index.html | 60 ++---
templates/leadscoring/quickstart/index.html | 30 +--
templates/productranking/quickstart/index.html | 40 +--
templates/recommendation/quickstart/index.html | 30 +--
templates/similarproduct/quickstart/index.html | 40 +--
templates/vanilla/quickstart/index.html | 10 +-
19 files changed, 385 insertions(+), 325 deletions(-)
diff --git a/archived/launch-aws/index.html b/archived/launch-aws/index.html
new file mode 100644
index 0000000..820b1f8
--- /dev/null
+++ b/archived/launch-aws/index.html
@@ -0,0 +1,6 @@
+Launching PredictionIO on AWS
\ No newline at end of file
diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html
index 1c93c3c..93740a1 100644
--- a/datacollection/batchimport/index.html
+++ b/datacollection/batchimport/index.html
@@ -7,7 +7,7 @@
{"event":"rate","entityType":"user","entityId":"3","targetEntityType":"item",{"event":"buy","entityType":"user","entityId":"3","targetEntityType":"item",{"event":"buy","entityType":"user","entityId":"3","targetEntityType":"item",
Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.
Use SDK to Prepare Batch Input File
Some of the Apache PredictionIO SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. [...]
+
Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.
Use SDK to Prepare Batch Input File
Some of the Apache PredictionIO SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. [...]
2
3
4
@@ -58,7 +58,7 @@
# close the FileExporter when finish writing all eventsexporter.close()
-
(coming soon)
1
(coming (coming soon)
1
(coming
After a brief while, the tool should return to the console without any error. Congratulations! You have successfully imported your events.
You can also follow the EventAPI debug receipts to query the events of specific channel by adding the channel query parameter in the URL.
Delete a Channel (including all imported data)
1
pio app data-delete <app name> --channel <channel name>
Accessing Channel Data in Engine
To acccess channel data, simply specify the channel name when use the PEventStore or LEventStore API. Data is read from from the default channel if channelName is not specified.
You may connect to the Event Server with HTTP request or by using one of many Apache PredictionIO SDKs.
For example, the following shows how one can create an event involving a single entity. Replace the value of accessKey by the Access Key generated for your App.
Creating Your First Event
You may connect to the Event Server with HTTP request or by using one of many Apache PredictionIO SDKs.
For example, the following shows how one can create an event involving a single entity. Replace the value of accessKey by the Access Key generated for your App.
In this installation, we only need the docker sub-directory in the repository. One can use other tools to get the folder without cloning the whole project.
Build Docker Image
To build PredictionIO docker image, Dockerfile is provided in sub-directory pio.
People can get PredictionIO image from Dockerhub through docker pull predictionio/pio. However, since the image cannot run without a properly configured storage, please follow the following steps to complete the installation.
In this examples, we pull and start predictionio/pio image with docker-compose.yml.
And pull postgres:9 image with pgsql/docker-compose.base.yml.
And config PostgreSQL to store our metadata, event, and model with pgsql/docker-compose.meta.yml, pgsql/docker-compose.event.yml, and pgsql/docker-compose.model.yml.
After pulling the images, th [...]
+2
+3
+4
+5
...
+pio_1 | [INFO] [Management$] Your system is all ready to go.
+pio_1 | [INFO] [Management$] Creating Event Server at 0.0.0.0:7070
+pio_1 | [INFO] [HttpListener] Bound to /0.0.0.0:7070
+pio_1 | [INFO] [EventServerActor] Bound received. EventServer is ready.
+
Verifying Service
A command tool pio-docker is provided to invoke pio command in the PredictionIO container. Set pio-docker to default execution path and use status to check the current PredictionIO service with the following script.
$ export PATH=`pwd`/bin:$PATH
+$ pio-docker status
+
One should be able to see the corresponding log in the following structure, and your system is ready to go!
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
[INFO] [Management$] Inspecting PredictionIO...
+[INFO] [Management$] PredictionIO 0.13.0 is installed at /usr/share/predictionio
+[INFO] [Management$] Inspecting Apache Spark...
+[INFO] [Management$] Apache Spark is installed at /usr/share/spark-2.2.2-bin-hadoop2.7
+[INFO] [Management$] Apache Spark 2.2.2 detected (meets minimum requirement of 1.3.0)
+[INFO] [Management$] Inspecting storage backend connections...
+[INFO] [Storage$] Verifying Meta Data Backend (Source: PGSQL)...
+[INFO] [Storage$] Verifying Model Data Backend (Source: PGSQL)...
+[INFO] [Storage$] Verifying Event Data Backend (Source: PGSQL)...
+[INFO] [Storage$] Test writing to Event Store (App Id 0)...
+[INFO] [Management$] Your system is all ready to go.
+
After the service is up, one can continue by changing pio to pio-docker for further deployment. More details are provided in this document.
1
2
3
4
@@ -526,7 +526,7 @@ Your system is all ready to go.
print_r($response);?>
-
1
+
1
2
3
4
@@ -539,7 +539,7 @@ Your system is all ready to go.
response=client.send_query('attr0'=>2,'attr1'=>0,'attr2'=>0 [...]
putsresponse
-
1
+
1
2
3
4
diff --git a/templates/complementarypurchase/quickstart/index.html b/templates/complementarypurchase/quickstart/index.html
index 8dddcfe..db063d7 100644
--- a/templates/complementarypurchase/quickstart/index.html
+++ b/templates/complementarypurchase/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect training data for this Engine. By default, Complementary Purchase Engine Template supports the following entities: user, item. A user buys an item. This template requires user-buy-item events.
Note that the engine requires correct buy event time being used in order to determine if the i [...]
+
4. Collecting Data
Next, let's collect training data for this Engine. By default, Complementary Purchase Engine Template supports the following entities: user, item. A user buys an item. This template requires user-buy-item events.
Note that the engine requires correct buy event time being used in order to determine if the i [...]
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"
}'
-
1
+
1
2
3
4
@@ -104,7 +104,7 @@ Your system is all ready to go.
target_entity_id=<ITEMID>,event_time=<EVENT_TIME>)
-
1
+
1
2
3
4
@@ -155,7 +155,7 @@ Your system is all ready to go.
));?>
-
1
+
1
2
3
4
@@ -200,7 +200,7 @@ Your system is all ready to go.
'eventTime'=><EVENT_TIME>})
-
1
+
1
2
3
4
@@ -290,7 +290,7 @@ User u10 buys item s2i1 at 2014-10-19 15:43:15.618000-07:53
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.
6. Use the Engine
Now, You can query the engine. For example, r [...]
+
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.
6. Use the Engine
Now, You can query the engine. For example, r [...]
2
3
4
@@ -303,7 +303,7 @@ User u10 buys item s2i1 at 2014-10-19 15:43:15.618000-07:53
}' \
http://localhost:8000/queries.json
-
1
2
3
4
diff --git a/templates/ecommercerecommendation/quickstart/index.html b/templates/ecommercerecommendation/quickstart/index.html
index 5bee523..2b044e9 100644
--- a/templates/ecommercerecommendation/quickstart/index.html
+++ b/templates/ecommercerecommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: user and item; events view and buy. An item has the categories property, which is a list of category names (St [...]
+
4. Collecting Data
Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: user and item; events view and buy. An item has the categories property, which is a list of category names (St [...]
2
3
4
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -78,7 +78,7 @@ Your system is all ready to go.
entity_type="user",entity_id=<USER_ID>)
-
1
+
1
2
3
4
@@ -119,7 +119,7 @@ Your system is all ready to go.
'properties'=>array('categories'=>array('<CATEGORY_1>','<CATEGORY_2>'))));?>
-
1
+
1
2
3
4
@@ -136,7 +136,7 @@ Your system is all ready to go.
'user',<USERID>)
-
1
+
1
2
3
4
@@ -161,7 +161,7 @@ Your system is all ready to go.
.entityType("user").entityId(<USER_ID>);client.createEvent(userEvent);
-
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
-
1
+
1
2
3
4
@@ -201,7 +201,7 @@ Your system is all ready to go.
"categories":["<CATEGORY_1>","<CATEGORY_2>"]})
-
1
+
1
2
3
4
@@ -218,7 +218,7 @@ Your system is all ready to go.
'properties'=>array('categories'=>array('<CATEGORY_1>','<CATEGORY_2>'))));?>
-
1
+
1
2
3
4
@@ -235,7 +235,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -248,7 +248,7 @@ Your system is all ready to go.
.entityId(<ITEM_ID>).property("categories",ImmutableList.of("<CATEGORY_1>","<CATEGORY_2>"));client.createEvent(itemEvent)
-
The properties of the user and item can be set, unset, or delete by special events $set, $unset and $delete. Please refer to Event API for more details of using these events.
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current [...]
+
The properties of the user and item can be set, unset, or delete by special events $set, $unset and $delete. Please refer to Event API for more details of using these events.
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current [...]
2
3
4
@@ -267,7 +267,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'
-
1
+
1
2
3
4
@@ -284,7 +284,7 @@ Your system is all ready to go.
target_entity_type="item",target_entity_id=<ITEMID>)
-
1
+
1
2
3
4
@@ -303,7 +303,7 @@ Your system is all ready to go.
'targetEntityId'=><ITEMID>));?>
-
1
+
1
2
3
4
@@ -322,7 +322,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -337,7 +337,7 @@ Your system is all ready to go.
.targetEntityType("item").targetEntityId(<ITEM_ID>);client.createEvent(viewEvent);
-
When the user "u0" buy item "i0" on time 2014-11-10T13:00:00.123-08:00 (current time will be used if eventTime is not specified), you can send a view event. Run the following curl command:
To update the model periodically with new data, simply set up a cron job to call pio train and pio deploy. The engine will continue to serve prediction results during the re-train process. After the training is completed, pio deploy will automatically shutdown the existing engine server and bring up a new process on th [...]
+
MyECommerceRecommendation is now running.
To update the model periodically with new data, simply set up a cron job to call pio train and pio deploy. The engine will continue to serve prediction results during the re-train process. After the training is completed, pio deploy will automatically shutdown the existing engine server and bring up a new process on th [...]
2
3
4
@@ -599,7 +599,7 @@ http://localhost:8000/queries.json
}
"eventTime" : "2015-02-17T02:11:21.934Z"
}'
-
1
2
3
4
diff --git a/templates/javaecommercerecommendation/quickstart/index.html b/templates/javaecommercerecommendation/quickstart/index.html
index 37bcb3d..5ae4863 100644
--- a/templates/javaecommercerecommendation/quickstart/index.html
+++ b/templates/javaecommercerecommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: user and item; events view and buy. An item has the categories property, which is a list of category names (St [...]
+
4. Collecting Data
Next, let's collect training data for this Engine. By default, the E-Commerce Recommendation Engine Template supports 2 types of entities and 2 events: user and item; events view and buy. An item has the categories property, which is a list of category names (St [...]
2
3
4
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -78,7 +78,7 @@ Your system is all ready to go.
entity_type="user",entity_id=<USER_ID>)
-
1
+
1
2
3
4
@@ -119,7 +119,7 @@ Your system is all ready to go.
'properties'=>array('categories'=>array('<CATEGORY_1>','<CATEGORY_2>'))));?>
-
1
+
1
2
3
4
@@ -136,7 +136,7 @@ Your system is all ready to go.
'user',<USERID>)
-
1
+
1
2
3
4
@@ -161,7 +161,7 @@ Your system is all ready to go.
.entityType("user").entityId(<USER_ID>);client.createEvent(userEvent);
-
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
-
1
+
1
2
3
4
@@ -201,7 +201,7 @@ Your system is all ready to go.
"categories":["<CATEGORY_1>","<CATEGORY_2>"]})
-
1
+
1
2
3
4
@@ -218,7 +218,7 @@ Your system is all ready to go.
'properties'=>array('categories'=>array('<CATEGORY_1>','<CATEGORY_2>'))));?>
-
1
+
1
2
3
4
@@ -235,7 +235,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -248,7 +248,7 @@ Your system is all ready to go.
.entityId(<ITEM_ID>).property("categories",ImmutableList.of("<CATEGORY_1>","<CATEGORY_2>"));client.createEvent(itemEvent)
-
The properties of the user and item can be set, unset, or delete by special events $set, $unset and $delete. Please refer to Event API for more details of using these events.
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current [...]
+
The properties of the user and item can be set, unset, or delete by special events $set, $unset and $delete. Please refer to Event API for more details of using these events.
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current [...]
2
3
4
@@ -267,7 +267,7 @@ Your system is all ready to go.
"targetEntityId" : "i0",
"eventTime" : "2014-11-10T12:34:56.123-08:00"
}'
-
1
+
1
2
3
4
@@ -284,7 +284,7 @@ Your system is all ready to go.
target_entity_type="item",target_entity_id=<ITEMID>)
-
1
+
1
2
3
4
@@ -303,7 +303,7 @@ Your system is all ready to go.
'targetEntityId'=><ITEMID>));?>
-
1
+
1
2
3
4
@@ -322,7 +322,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -337,7 +337,7 @@ Your system is all ready to go.
.targetEntityType("item").targetEntityId(<ITEM_ID>);client.createEvent(viewEvent);
-
When the user "u0" buy item "i0" on time 2014-11-10T13:00:00.123-08:00 (current time will be used if eventTime is not specified), you can send a view event. Run the following curl command:
To update the model periodically with new data, simply set up a cron job to call pio train and pio deploy. The engine will continue to serve prediction results during the re-train process. After the training is completed, pio deploy will automatically shutdown the existing engine server and bring up a new process on th [...]
+
MyECommerceRecommendation is now running.
To update the model periodically with new data, simply set up a cron job to call pio train and pio deploy. The engine will continue to serve prediction results during the re-train process. After the training is completed, pio deploy will automatically shutdown the existing engine server and bring up a new process on th [...]
2
3
4
@@ -599,7 +599,7 @@ http://localhost:8000/queries.json
}
"eventTime" : "2015-02-17T02:11:21.934Z"
}'
-
1
2
3
4
diff --git a/templates/leadscoring/quickstart/index.html b/templates/leadscoring/quickstart/index.html
index 01a80cf..e30ff2d 100644
--- a/templates/leadscoring/quickstart/index.html
+++ b/templates/leadscoring/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect training data for this Engine. By default, Lead Scoring Engine Template supports the following entities: user, page, and item. An user views a page, and buys an item.
Note that a "sessionId" property is required to indicate these events happen in the same sess [...]
+
4. Collecting Data
Next, let's collect training data for this Engine. By default, Lead Scoring Engine Template supports the following entities: user, page, and item. An user views a page, and buys an item.
Note that a "sessionId" property is required to indicate these events happen in the same sess [...]
2
3
4
@@ -61,7 +61,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -106,7 +106,7 @@ Your system is all ready to go.
"browser":<BROWSER># optinal. but should specify this if you have this information when user views the landing page})
-
1
+
1
2
3
4
@@ -145,7 +145,7 @@ Your system is all ready to go.
)));?>
-
1
+
1
2
3
4
@@ -178,7 +178,7 @@ Your system is all ready to go.
}})
-
1
+
1
2
3
4
@@ -213,7 +213,7 @@ Your system is all ready to go.
.property("referrerId","<REFERRER ID>").property("browser","<BROWSER>");client.createEvent(viewEvent);
-
In the same browsing session "akdj230fj8ass", the user with ID u0 buys an item i0 on time 2014-11-02T09:42:00.123-08:00 (current time will be used if eventTime is not specified), you can send the following buy event. Run the following curl command:
1
2
3
4
@@ -261,7 +261,7 @@ Your system is all ready to go.
"sessionId":<SESSIONID>,# required})
-
1
+
1
2
3
4
@@ -288,7 +288,7 @@ Your system is all ready to go.
));?>
-
1
+
1
2
3
4
@@ -311,7 +311,7 @@ Your system is all ready to go.
}})
-
1
+
1
2
3
4
@@ -371,7 +371,7 @@ User u5 buys item i5
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.
6. Use the Engine
Now, You can retrieve the results. When a use [...]
+
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.
6. Use the Engine
Now, You can retrieve the results. When a use [...]
2
3
4
@@ -384,7 +384,7 @@ User u5 buys item i5
"browser": "Firefox" }' \
http://localhost:8000/queries.json
-
1
2
3
4
diff --git a/templates/productranking/quickstart/index.html b/templates/productranking/quickstart/index.html
index f1bdd93..d903c6a 100644
--- a/templates/productranking/quickstart/index.html
+++ b/templates/productranking/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect some training data for the app of this Engine. By default, the Product Ranking Engine Template supports 2 types of entities: user and item, and event view. A user can view an item. This template requires '$set' user event, '$set' item event and user-view-item [...]
+
4. Collecting Data
Next, let's collect some training data for the app of this Engine. By default, the Product Ranking Engine Template supports 2 types of entities: user and item, and event view. A user can view an item. This template requires '$set' user event, '$set' item event and user-view-item [...]
2
3
4
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -78,7 +78,7 @@ Your system is all ready to go.
entity_type="user",entity_id=<USER_ID>)
-
1
+
1
2
3
4
@@ -103,7 +103,7 @@ Your system is all ready to go.
'entityId'=><USERID>));?>
-
1
+
1
2
3
4
@@ -120,7 +120,7 @@ Your system is all ready to go.
'user',<USERID>)
-
1
+
1
2
3
4
@@ -145,7 +145,7 @@ Your system is all ready to go.
.entityType("user").entityId(<USER_ID>);client.createEvent(userEvent);
-
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Run the following curl command:
1
2
3
4
@@ -173,7 +173,7 @@ Your system is all ready to go.
entity_type="item",entity_id=<ITEM_ID>)
-
1
+
1
2
3
4
@@ -190,7 +190,7 @@ Your system is all ready to go.
));?>
-
1
+
1
2
3
4
@@ -203,7 +203,7 @@ Your system is all ready to go.
<ITEMID>)
-
1
+
1
2
3
4
@@ -214,7 +214,7 @@ Your system is all ready to go.
.entityType("item").entityId(<ITEM_ID>);client.createEvent(itemEvent)
-
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current time will be used if eventTime is not specified), you can send a view event. Run the following curl command:
1
2
3
4
diff --git a/templates/recommendation/quickstart/index.html b/templates/recommendation/quickstart/index.html
index 7ee1c4c..7aa89d9 100644
--- a/templates/recommendation/quickstart/index.html
+++ b/templates/recommendation/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect some training data. By default, the Recommendation Engine Template supports 2 types of events: rate and buy. A user can give a rating score to an item or buy an item. This template requires user-view-item and user-buy-item events.
This template can easily [...]
+
4. Collecting Data
Next, let's collect some training data. By default, the Recommendation Engine Template supports 2 types of events: rate and buy. A user can give a rating score to an item or buy an item. This template requires user-view-item and user-buy-item events.
This template can easily [...]
2
3
4
@@ -57,7 +57,7 @@ Your system is all ready to go.
}
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -92,7 +92,7 @@ Your system is all ready to go.
target_entity_id=<ITEMID>,properties={"rating":float(<RATING>)})
-
1
+
1
2
3
4
@@ -123,7 +123,7 @@ Your system is all ready to go.
'properties'=>array('rating'=><RATING>)));?>
-
1
+
1
2
3
4
@@ -150,7 +150,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -179,7 +179,7 @@ Your system is all ready to go.
.property("rating",newFloat(<RATING>));client.createEvent(rateEvent);
-
Example buy event
A user (ID "u1") buys an item (ID "i2") at 2014-11-10T12:34:56.123-08:00 (current time will be used if eventTime is not specified)
Run the following curl command to send the buy event:
1
2
3
4
@@ -326,7 +326,7 @@ Your system is all ready to go.
print_r($response);?>
-
1
+
1
2
3
4
@@ -339,7 +339,7 @@ Your system is all ready to go.
response=client.send_query('user'=><USERID>,'num'=><NUMBERputsresponse
-
1
+
1
2
3
4
diff --git a/templates/similarproduct/quickstart/index.html b/templates/similarproduct/quickstart/index.html
index bf1d18f..9bf724d 100644
--- a/templates/similarproduct/quickstart/index.html
+++ b/templates/similarproduct/quickstart/index.html
@@ -32,7 +32,7 @@ Your system is all ready to go.
[INFO] [App$] MyApp1 | 1 | 3mZWDzci2D5YsqAnqNnXH9SB6Rg3dsTBs8iHkK6X2i54IQsIZI1eEeQQyMfs7b3F | (all)[INFO] [App$] MyApp2 | 2 | io5lz6Eg4m3Xe4JZTBFE13GMAf1dhFl6ZteuJfrO84XpdOz9wRCrDU44EUaYuXq5 | (all)[INFO] [App$] Finished listing 2 app(s).
-
4. Collecting Data
Next, let's collect some training data for the app of this Engine. By default, the Similar Product Engine Template supports 2 types of entities: user and item, and event view. An item has the categories property, which is a list of category names (String). A user can view an ite [...]
+
4. Collecting Data
Next, let's collect some training data for the app of this Engine. By default, the Similar Product Engine Template supports 2 types of entities: user and item, and event view. An item has the categories property, which is a list of category names (String). A user can view an ite [...]
2
3
4
@@ -47,7 +47,7 @@ Your system is all ready to go.
"entityId" : "u0",
"eventTime" : "2014-11-02T09:39:45.618-08:00"
}'
-
1
+
1
2
3
4
@@ -86,7 +86,7 @@ Your system is all ready to go.
event_time=datetime(2014,11,02,09,39,45,618000,pytz.timezone('US [...]
)
-
1
+
1
2
3
4
@@ -111,7 +111,7 @@ Your system is all ready to go.
'entityId'=><USERID>));?>
-
1
+
1
2
3
4
@@ -128,7 +128,7 @@ Your system is all ready to go.
'user',<USERID>)
-
1
+
1
2
3
4
@@ -153,7 +153,7 @@ Your system is all ready to go.
.entityType("user").entityId(<USER_ID>);client.createEvent(userEvent);
-
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
When a new item "i0" is created in your app on time 2014-11-02T09:39:45.618-08:00 (current time will be used if eventTime is not specified), you can send a $set event for the item. Note that the item is set with categories properties: "c1" and "c2". Run the following curl command:
-
1
+
1
2
3
4
@@ -193,7 +193,7 @@ Your system is all ready to go.
"categories":["<CATEGORY_1>","<CATEGORY_2>"]})
-
1
+
1
2
3
4
@@ -214,7 +214,7 @@ Your system is all ready to go.
));?>
-
1
+
1
2
3
4
@@ -231,7 +231,7 @@ Your system is all ready to go.
})
-
1
+
1
2
3
4
@@ -244,7 +244,7 @@ Your system is all ready to go.
.entityId(<ITEM_ID>).property("categories",ImmutableList.of("<CATEGORY_1>","<CATEGORY_2>"));client.createEvent(itemEvent)
-
When the user "u0" view item "i0" on time 2014-11-10T12:34:56.123-08:00 (current time will be used if eventTime is not specified), you can send a view event. Run the following curl command:
1
2
3
4
diff --git a/templates/vanilla/quickstart/index.html b/templates/vanilla/quickstart/index.html
index 335a52b..bcc63fe 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.
6. Use the Engine
Now, You can try to retrieve predicted result [...]
+
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.
6. Use the Engine
Now, You can try to retrieve predicted result [...]
2
3