From commits-return-5525-archive-asf-public=cust-asf.ponee.io@predictionio.apache.org Sat Nov 3 21:36:00 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 C809118066B for ; Sat, 3 Nov 2018 21:35:56 +0100 (CET) Received: (qmail 53577 invoked by uid 500); 3 Nov 2018 20:35:55 -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 53568 invoked by uid 99); 3 Nov 2018 20:35:55 -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:35:55 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id DA6B781E0E; Sat, 3 Nov 2018 20:35:54 +0000 (UTC) Date: Sat, 03 Nov 2018 20:35:54 +0000 To: "commits@predictionio.apache.org" Subject: [predictionio-site] branch asf-site updated: Documentation based on apache/predictionio#15814ced43a090bee89ebe4b2fd816b5973732ec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <154127735480.3091.1058278404707975785@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: fef1e81c0ce2890e4610881e67ef5042daf05bd7 X-Git-Newrev: e0e1c9a0973993212c042fd9e749426379550672 X-Git-Rev: e0e1c9a0973993212c042fd9e749426379550672 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 e0e1c9a Documentation based on apache/predictionio#15814ced43a090bee89ebe4b2fd816b5973732ec e0e1c9a is described below commit e0e1c9a0973993212c042fd9e749426379550672 Author: jenkins AuthorDate: Sat Nov 3 20:35:52 2018 +0000 Documentation based on apache/predictionio#15814ced43a090bee89ebe4b2fd816b5973732ec --- community/contribute-documentation/index.html | 2 +- datacollection/batchimport/index.html | 4 +- datacollection/channel/index.html | 6 +- datacollection/eventapi/index.html | 20 +- gallery/template-gallery/index.html | 2 +- index.html | 2 +- resources/upgrade/index.html | 2 +- samples/tabs/index.html | 18 +- sitemap.xml | 260 ++++++++++----------- 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 +- 18 files changed, 318 insertions(+), 318 deletions(-) diff --git a/community/contribute-documentation/index.html b/community/contribute-documentation/index.html index b1c43e3..b69f280 100644 --- a/community/contribute-documentation/index.html +++ b/community/contribute-documentation/index.html @@ -50,7 +50,7 @@ title: Page Title ---

Important Files

Description File
Left side navigation. data/nav/main.yml
Main site layout. source/layouts/layout.html.slim
Custom Markdown renderer based on Redcarpet. lib/custom_rende [...] 2
$ git remote -v
-$ git remote add apache https://git-wip-us.apache.org/repos/asf/predictionio.git
+$ git remote add apache https://gitbox.apache.org/repos/asf/predictionio.git
 

Then, push the livedoc branch. (It will be published and synced with the public GitHub mirror):

1
$ git push apache livedoc
 

You can check the progress of each build on Apache's Jenkins:

Checking the Site

The check rake task is still in

$ bundle exec middleman build
diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html
index 1ca37e6..1c93c3c 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 events exporter.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.

(TODO: update me)
1
+
(TODO: update me)
1
 2
 3
 4
@@ -80,7 +80,7 @@
     properties=event_properties,
     event_time=datetime(2014, 12, 13, 21, 38, 45, 618000,  (TODO: update me)  
1
(coming 
(TODO: update me)
1
(coming 

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.

For example, read data from default channel:

[INFO] [App$] Name: MyTestApp [INFO] [App$] ID: 6 [INFO] [App$] Access Key: WPgcXKd42FPQpZHVbVeMyqF4CQJUnXQmIMTHhX3ZUrSzvy1KXJjdFUrslifa9rnB -

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.

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.

  • -
1
+
1
 2
 3
 4
@@ -94,7 +94,7 @@ Content-Length: 18
                         'eventTime' => '2004-12-13T21:39:45.618-07:00'
                        ));
 ?>
-
1
+
1
 2
 3
 4
@@ -137,7 +137,7 @@ Content-Length: 18
     properties=first_event_properties,
     event_time=first_event_time,
 )
-
1
+
1
 2
 3
 4
@@ -158,8 +158,8 @@ Content-Length: 18
                                             'prop4' => true,
                                             'prop5' => %w(a b c),
                                             'prop6' => 4.56 })
-
1
(coming soon)
-

For example, the following shows how one can create an event involving two entities (with targetEntity).

1
(coming soon)
+

For example, the following shows how one can create an event involving two entities (with targetEntity).

1
+
1
 2
 3
 4
@@ -221,7 +221,7 @@ Content-Length: 18
                         'eventTime' => '2004-12-13T21:39:45.618Z'
                        ));
 ?>
-
1
+
1
 2
 3
 4
@@ -246,7 +246,7 @@ Content-Length: 18
     target_entity_id="iid",
     properties=second_event_properties,
     event_time=datetime(2014, 12, 13, 21, 38, 45, 618000,  
1
+
1
 2
 3
 4
@@ -263,7 +263,7 @@ Content-Length: 18
                           'eventTime' => '2004-12-13T21:39:45.618Z',
                           'properties' => { 'someProperty' => 'value1',
                                             'anotherProperty' => 'value2' })
-
1
(coming soon)
+
1
(coming soon)
 

Sample response:

1
 2
 3
diff --git a/gallery/template-gallery/index.html b/gallery/template-gallery/index.html
index bee11dc..5bf0367 100644
--- a/gallery/template-gallery/index.html
+++ b/gallery/template-gallery/index.html
@@ -1,4 +1,4 @@
-Engine Template GalleryentityType = Some("user"),
     ...
 
-

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. 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 @@ -Tabs [...] +Tabs [...] 2 3 4 @@ -9,11 +9,11 @@ 'bar' end end -

This is a test of **markdown** inside a tab!
1
+
This is a test of **markdown** inside a tab!
1
 2
// This tab does not have the data-lang attribute set!
 $ cd path/to/your/file
-
1
<p>Yes you can still use HTML in code blocks!</p>
-
1
+
1
<p>Yes you can still use HTML in code blocks!</p>
+
1
 2
 3
 4
@@ -28,7 +28,7 @@ Test 5 =>
 Test 6 <=
 Test 7 <>
 <p><b>Test</b></p>
-

Test Syncing

Here we show a similar set of tabs to test language syncing:

Test Syncing

Here we show a similar set of tabs to test language syncing:

This is a test of **markdown** inside a tab!
1
+
This is a test of **markdown** inside a tab!
1
 2
// This tab does not have the data-lang attribute set!
 $ cd path/to/your/file
-

This HTML is hard coded.

1
# The other group does not ha [...]
-
This includes **bold** with Markdown.