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.
If Storage.getLEvents() is also used in Algorithm (such as ALSAlgorithm of E-Commerce Recommendation template), you also need to do following:
If org.apache.predictionio.data.storage.Storage is not used at all (such as Recommendation, Similar Product, Classificati [...]
+
2. In XXXAlgorithm.scala:
If Storage.getLEvents() is also used in Algorithm (such as ALSAlgorithm of E-Commerce Recommendation template), you also need to do following:
If org.apache.predictionio.data.storage.Storage is not used at all (such as Recommendation, Similar Product, Classificati [...]
2
3
4
diff --git a/samples/tabs/index.html b/samples/tabs/index.html
index f84c299..55fba89 100644
--- a/samples/tabs/index.html
+++ b/samples/tabs/index.html
@@ -1,4 +1,4 @@
-
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 021ebbe..8dddcfe 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 25ce6eb..5bee523 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 3258c56..37bcb3d 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 dbee499..01a80cf 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 276115e..f1bdd93 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 22337ba..7ee1c4c 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 56c31ea..bf1d18f 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 aed287c..335a52b 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