spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [17/50] git commit: Bumping up test matrix size to eliminate random failures
Date Fri, 11 Oct 2013 22:45:42 GMT
Bumping up test matrix size to eliminate random failures


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/b0f5f4d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/b0f5f4d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/b0f5f4d4

Branch: refs/heads/scala-2.10
Commit: b0f5f4d441119662c09572de697b2d9943f703ef
Parents: 93b96b4
Author: Nick Pentreath <nick.pentreath@gmail.com>
Authored: Mon Oct 7 11:44:22 2013 +0200
Committer: Nick Pentreath <nick.pentreath@gmail.com>
Committed: Mon Oct 7 11:44:22 2013 +0200

----------------------------------------------------------------------
 .../spark/mllib/recommendation/JavaALSSuite.java    | 16 ++++++++--------
 .../spark/mllib/recommendation/ALSSuite.scala       |  8 ++++----
 2 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/b0f5f4d4/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java
----------------------------------------------------------------------
diff --git a/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java b/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java
index c8e59f7..eafee06 100644
--- a/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java
+++ b/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java
@@ -102,8 +102,8 @@ public class JavaALSSuite implements Serializable {
   public void runALSUsingStaticMethods() {
     int features = 1;
     int iterations = 15;
-    int users = 10;
-    int products = 10;
+    int users = 50;
+    int products = 100;
     scala.Tuple3<List<Rating>, DoubleMatrix, DoubleMatrix> testData = ALSSuite.generateRatingsAsJavaList(
         users, products, features, 0.7, false);
 
@@ -116,8 +116,8 @@ public class JavaALSSuite implements Serializable {
   public void runALSUsingConstructor() {
     int features = 2;
     int iterations = 15;
-    int users = 20;
-    int products = 30;
+    int users = 100;
+    int products = 200;
     scala.Tuple3<List<Rating>, DoubleMatrix, DoubleMatrix> testData = ALSSuite.generateRatingsAsJavaList(
         users, products, features, 0.7, false);
 
@@ -133,8 +133,8 @@ public class JavaALSSuite implements Serializable {
   public void runImplicitALSUsingStaticMethods() {
     int features = 1;
     int iterations = 15;
-    int users = 40;
-    int products = 80;
+    int users = 80;
+    int products = 160;
     scala.Tuple3<List<Rating>, DoubleMatrix, DoubleMatrix> testData = ALSSuite.generateRatingsAsJavaList(
       users, products, features, 0.7, true);
 
@@ -147,8 +147,8 @@ public class JavaALSSuite implements Serializable {
   public void runImplicitALSUsingConstructor() {
     int features = 2;
     int iterations = 15;
-    int users = 50;
-    int products = 100;
+    int users = 100;
+    int products = 200;
     scala.Tuple3<List<Rating>, DoubleMatrix, DoubleMatrix> testData = ALSSuite.generateRatingsAsJavaList(
       users, products, features, 0.7, true);
 

http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/b0f5f4d4/mllib/src/test/scala/org/apache/spark/mllib/recommendation/ALSSuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/recommendation/ALSSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/recommendation/ALSSuite.scala
index 1ab181d..fafc5ec 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/recommendation/ALSSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/recommendation/ALSSuite.scala
@@ -87,19 +87,19 @@ class ALSSuite extends FunSuite with BeforeAndAfterAll {
   }
 
   test("rank-1 matrices") {
-    testALS(10, 20, 1, 15, 0.7, 0.3)
+    testALS(50, 100, 1, 15, 0.7, 0.3)
   }
 
   test("rank-2 matrices") {
-    testALS(20, 30, 2, 15, 0.7, 0.3)
+    testALS(100, 200, 2, 15, 0.7, 0.3)
   }
 
   test("rank-1 matrices implicit") {
-    testALS(40, 80, 1, 15, 0.7, 0.4, true)
+    testALS(80, 160, 1, 15, 0.7, 0.4, true)
   }
 
   test("rank-2 matrices implicit") {
-    testALS(50, 100, 2, 15, 0.7, 0.4, true)
+    testALS(100, 200, 2, 15, 0.7, 0.4, true)
   }
 
   /**


Mime
View raw message