[2/7] predictionio-site git commit: Documentation based on apache/predictionio#c0d60c1b2fca48c46c2dc6394ed80fbe74d5a59c
http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/52ba9b45/templates/productranking/quickstart/index.html -- diff --git a/templates/productranking/quickstart/index.html b/templates/productranking/quickstart/index.html index 0c824d0..3deb160 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 DataNext, lets 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 events. 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 App Integration Overview for more details how to integrate your app with SDK.Lets try sending events to EventServer with the following curl commands (The corresponding SDK code is showed in other tabs).Replace ACCCESS_KEY by the Access Key generated in above steps. Note that localhost:7070 is the default URL of the Event Server.For convenience, set your access key to the shell variable, run:$ ACCESS_KEY=ACCESS_KEY For example, when a new user with id u0 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 this user. To send this event, run the following curl command: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 + 4. Collecting DataNext, lets 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 events. 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 App Integration Overview for more details how to integrate your app with SDK.Lets try sending events to EventServer with the following curl commands (The corresponding SDK code is showed in other tabs).Replace ACCCESS_KEY by the Access Key generated in above steps. Note that localhost:7070 is the default URL of the Event Server.For convenience, set your access key to the shell variable, run:$ ACCESS_KEY=ACCESS_KEY For example, when a new user with id u0 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 this user. To send this event, run the following curl command: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 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' = USER ID )); ? - 1 + 1 2 3 4 @@ -120,7 +120,7 @@ Your system is all ready to go. 'user', USER ID ) - 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: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 + 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: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 2 3 4 @@ -160,7 +160,7 @@ Your system is all ready to go. "entityId" : "i0", "eventTime" : "2014-11-02T09:39:45.618-08:00" }' - 1 + 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. ITEM ID ) - 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
[2/7] predictionio-site git commit: Documentation based on apache/predictionio#c0d60c1b2fca48c46c2dc6394ed80fbe74d5a59c
http://git-wip-us.apache.org/repos/asf/predictionio-site/blob/c3b8e903/templates/productranking/quickstart/index.html -- diff --git a/templates/productranking/quickstart/index.html b/templates/productranking/quickstart/index.html index 8a6cc13..0c824d0 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 DataNext, lets 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 events. 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 App Integration Overview for more details how to integrate your app with SDK.Lets try sending events to EventServer with the following curl commands (The corresponding SDK code is showed in other tabs).Replace ACCCESS_KEY by the Access Key generated in above steps. Note that localhost:7070 is the default URL of the Event Server.For convenience, set your access key to the shell variable, run:$ ACCESS_KEY=ACCESS_KEY For example, when a new user with id u0 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 this user. To send this event, run the following curl command: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 + 4. Collecting DataNext, lets 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 events. 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 App Integration Overview for more details how to integrate your app with SDK.Lets try sending events to EventServer with the following curl commands (The corresponding SDK code is showed in other tabs).Replace ACCCESS_KEY by the Access Key generated in above steps. Note that localhost:7070 is the default URL of the Event Server.For convenience, set your access key to the shell variable, run:$ ACCESS_KEY=ACCESS_KEY For example, when a new user with id u0 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 this user. To send this event, run the following curl command: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 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' = USER ID )); ? - 1 + 1 2 3 4 @@ -120,7 +120,7 @@ Your system is all ready to go. 'user', USER ID ) - 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: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 + 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: REST API Python SDK PHP SDK Ruby SDK Java SDK 1 2 3 4 @@ -160,7 +160,7 @@ Your system is all ready to go. "entityId" : "i0", "eventTime" : "2014-11-02T09:39:45.618-08:00" }' - 1 + 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. ITEM ID ) - 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