aboutsummaryrefslogtreecommitdiff
path: root/mllib/pom.xml
diff options
context:
space:
mode:
authorShivaram Venkataraman <shivaram@eecs.berkeley.edu>2013-08-06 15:43:46 -0700
committerShivaram Venkataraman <shivaram@eecs.berkeley.edu>2013-08-06 15:43:46 -0700
commit471fbadd0c8cb8d310e3e1dd0e694e357ff1233e (patch)
treec8710554a0ce04e87873308540757eadfcbbd244 /mllib/pom.xml
parentd2b0f0c23d9ccd5e8a23450e421503d3201f3450 (diff)
downloadspark-471fbadd0c8cb8d310e3e1dd0e694e357ff1233e.tar.gz
spark-471fbadd0c8cb8d310e3e1dd0e694e357ff1233e.tar.bz2
spark-471fbadd0c8cb8d310e3e1dd0e694e357ff1233e.zip
Java examples, tests for KMeans and ALS
- Changes ALS to accept RDD[Rating] instead of (Int, Int, Double) making it easier to call from Java - Renames class methods from `train` to `run` to enable static methods to be called from Java. - Add unit tests which check if both static / class methods can be called. - Also add examples which port the main() function in ALS, KMeans to the examples project. Couple of minor changes to existing code: - Add a toJavaRDD method in RDD to convert scala RDD to java RDD easily - Workaround a bug where using double[] from Java leads to class cast exception in KMeans init
Diffstat (limited to 'mllib/pom.xml')
-rw-r--r--mllib/pom.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/mllib/pom.xml b/mllib/pom.xml
index f3928cc73d..a07480fbe2 100644
--- a/mllib/pom.xml
+++ b/mllib/pom.xml
@@ -52,6 +52,11 @@
<artifactId>scalacheck_${scala.version}</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.novocode</groupId>
+ <artifactId>junit-interface</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<outputDirectory>target/scala-${scala.version}/classes</outputDirectory>