You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/11/01 21:48:17 UTC
[1/2] incubator-predictionio-template-ecom-recommender git commit:
Update template for PIO v0.10.0-incubating
Repository: incubator-predictionio-template-ecom-recommender
Updated Branches:
refs/heads/develop 23daa4b66 -> 68666e7fe
Update template for PIO v0.10.0-incubating
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/commit/ed2cbaf2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/tree/ed2cbaf2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/diff/ed2cbaf2
Branch: refs/heads/develop
Commit: ed2cbaf2c80e5cd09278959542fbd67bf00a06a6
Parents: 23daa4b
Author: Chan Lee <ch...@gmail.com>
Authored: Tue Nov 1 14:45:44 2016 -0700
Committer: Donald Szeto <ds...@salesforce.com>
Committed: Tue Nov 1 14:45:44 2016 -0700
----------------------------------------------------------------------
build.sbt | 10 +++++-----
project/pio-build.sbt | 1 -
src/main/scala/DataSource.scala | 12 ++++++------
src/main/scala/ECommAlgorithm.scala | 10 +++++-----
src/main/scala/Engine.scala | 4 ++--
src/main/scala/Preparator.scala | 2 +-
src/main/scala/Serving.scala | 2 +-
src/test/scala/ECommAlgorithmTest.scala | 2 +-
template.json | 2 +-
9 files changed, 22 insertions(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/build.sbt
----------------------------------------------------------------------
diff --git a/build.sbt b/build.sbt
index 896f6db..212bcda 100644
--- a/build.sbt
+++ b/build.sbt
@@ -4,12 +4,12 @@ assemblySettings
name := "template-scala-parallel-ecommercerecommendation"
-organization := "io.prediction"
+organization := "org.apache.predictionio"
parallelExecution in Test := false
libraryDependencies ++= Seq(
- "io.prediction" %% "core" % pioVersion.value % "provided",
- "org.apache.spark" %% "spark-core" % "1.3.0" % "provided",
- "org.apache.spark" %% "spark-mllib" % "1.3.0" % "provided",
- "org.scalatest" %% "scalatest" % "2.2.1" % "test")
+ "org.apache.predictionio" %% "apache-predictionio-core" % "0.10.0-incubating" % "provided",
+ "org.apache.spark" %% "spark-core" % "1.3.0" % "provided",
+ "org.apache.spark" %% "spark-mllib" % "1.3.0" % "provided",
+ "org.scalatest" %% "scalatest" % "2.2.1" % "test")
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/project/pio-build.sbt
----------------------------------------------------------------------
diff --git a/project/pio-build.sbt b/project/pio-build.sbt
deleted file mode 100644
index 8346a96..0000000
--- a/project/pio-build.sbt
+++ /dev/null
@@ -1 +0,0 @@
-addSbtPlugin("io.prediction" % "pio-build" % "0.9.0")
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/main/scala/DataSource.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/DataSource.scala b/src/main/scala/DataSource.scala
index bb83a3d..05818db 100644
--- a/src/main/scala/DataSource.scala
+++ b/src/main/scala/DataSource.scala
@@ -1,11 +1,11 @@
package org.template.ecommercerecommendation
-import io.prediction.controller.PDataSource
-import io.prediction.controller.EmptyEvaluationInfo
-import io.prediction.controller.EmptyActualResult
-import io.prediction.controller.Params
-import io.prediction.data.storage.Event
-import io.prediction.data.store.PEventStore
+import org.apache.predictionio.controller.PDataSource
+import org.apache.predictionio.controller.EmptyEvaluationInfo
+import org.apache.predictionio.controller.EmptyActualResult
+import org.apache.predictionio.controller.Params
+import org.apache.predictionio.data.storage.Event
+import org.apache.predictionio.data.store.PEventStore
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/main/scala/ECommAlgorithm.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/ECommAlgorithm.scala b/src/main/scala/ECommAlgorithm.scala
index 674fd09..b962628 100644
--- a/src/main/scala/ECommAlgorithm.scala
+++ b/src/main/scala/ECommAlgorithm.scala
@@ -1,10 +1,10 @@
package org.template.ecommercerecommendation
-import io.prediction.controller.P2LAlgorithm
-import io.prediction.controller.Params
-import io.prediction.data.storage.BiMap
-import io.prediction.data.storage.Event
-import io.prediction.data.store.LEventStore
+import org.apache.predictionio.controller.P2LAlgorithm
+import org.apache.predictionio.controller.Params
+import org.apache.predictionio.data.storage.BiMap
+import org.apache.predictionio.data.storage.Event
+import org.apache.predictionio.data.store.LEventStore
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/main/scala/Engine.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/Engine.scala b/src/main/scala/Engine.scala
index 47d9896..f357215 100644
--- a/src/main/scala/Engine.scala
+++ b/src/main/scala/Engine.scala
@@ -1,7 +1,7 @@
package org.template.ecommercerecommendation
-import io.prediction.controller.IEngineFactory
-import io.prediction.controller.Engine
+import org.apache.predictionio.controller.IEngineFactory
+import org.apache.predictionio.controller.Engine
case class Query(
user: String,
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/main/scala/Preparator.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/Preparator.scala b/src/main/scala/Preparator.scala
index ff82f80..dc7c534 100644
--- a/src/main/scala/Preparator.scala
+++ b/src/main/scala/Preparator.scala
@@ -1,6 +1,6 @@
package org.template.ecommercerecommendation
-import io.prediction.controller.PPreparator
+import org.apache.predictionio.controller.PPreparator
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/main/scala/Serving.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/Serving.scala b/src/main/scala/Serving.scala
index 21cf2df..4cc20da 100644
--- a/src/main/scala/Serving.scala
+++ b/src/main/scala/Serving.scala
@@ -1,6 +1,6 @@
package org.template.ecommercerecommendation
-import io.prediction.controller.LServing
+import org.apache.predictionio.controller.LServing
class Serving
extends LServing[Query, PredictedResult] {
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/src/test/scala/ECommAlgorithmTest.scala
----------------------------------------------------------------------
diff --git a/src/test/scala/ECommAlgorithmTest.scala b/src/test/scala/ECommAlgorithmTest.scala
index 5ddac96..04f6286 100644
--- a/src/test/scala/ECommAlgorithmTest.scala
+++ b/src/test/scala/ECommAlgorithmTest.scala
@@ -3,7 +3,7 @@ package org.template.ecommercerecommendation
import org.scalatest.FlatSpec
import org.scalatest.Matchers
-import io.prediction.data.storage.BiMap
+import org.apache.predictionio.data.storage.BiMap
import org.apache.spark.mllib.recommendation.{Rating => MLlibRating}
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/ed2cbaf2/template.json
----------------------------------------------------------------------
diff --git a/template.json b/template.json
index fb4a50b..d076ec5 100644
--- a/template.json
+++ b/template.json
@@ -1 +1 @@
-{"pio": {"version": { "min": "0.9.2" }}}
+{"pio": {"version": { "min": "0.10.0-incubating" }}}
[2/2] incubator-predictionio-template-ecom-recommender git commit:
v0.5.0
Posted by do...@apache.org.
v0.5.0
Closes #9
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/commit/68666e7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/tree/68666e7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/diff/68666e7f
Branch: refs/heads/develop
Commit: 68666e7fe3f6f728bf034e945acb4f5ad37c32f8
Parents: ed2cbaf
Author: Donald Szeto <ds...@salesforce.com>
Authored: Tue Nov 1 14:47:46 2016 -0700
Committer: Donald Szeto <ds...@salesforce.com>
Committed: Tue Nov 1 14:47:46 2016 -0700
----------------------------------------------------------------------
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-ecom-recommender/blob/68666e7f/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 23eea3a..857fe42 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,14 @@
## Documentation
-Please refer to http://docs.prediction.io/templates/ecommercerecommendation/quickstart/
+Please refer to http://predictionio.incubator.apache.org/templates/ecommercerecommendation/quickstart/
## Versions
+### v0.5.0
+
+- Update for Apache PredictionIO 0.10.0-incubating
+
### v0.4.0
- Change from ALSAlgorithm.scala to ECommAlgorithm.scala