aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test
diff options
context:
space:
mode:
authorXinghao <pxinghao@gmail.com>2013-07-26 17:36:14 -0700
committerXinghao <pxinghao@gmail.com>2013-07-26 17:36:14 -0700
commitf0a1f95228bdb3f2f4c8a869a96c8df1a066edf3 (patch)
treeeee9d0d8b6cc845bd06fd6bfbb2cca24fa8a4803 /mllib/src/test
parentf74a03c6d82f47e004d32de5bd4e17be91d35888 (diff)
downloadspark-f0a1f95228bdb3f2f4c8a869a96c8df1a066edf3.tar.gz
spark-f0a1f95228bdb3f2f4c8a869a96c8df1a066edf3.tar.bz2
spark-f0a1f95228bdb3f2f4c8a869a96c8df1a066edf3.zip
Rename LogisticRegression, SVM and Lasso to *_LocalRandomSGD
Diffstat (limited to 'mllib/src/test')
-rw-r--r--mllib/src/test/scala/spark/mllib/classification/LogisticRegressionSuite.scala4
-rw-r--r--mllib/src/test/scala/spark/mllib/classification/SVMSuite.scala4
-rw-r--r--mllib/src/test/scala/spark/mllib/regression/LassoSuite.scala4
3 files changed, 6 insertions, 6 deletions
diff --git a/mllib/src/test/scala/spark/mllib/classification/LogisticRegressionSuite.scala b/mllib/src/test/scala/spark/mllib/classification/LogisticRegressionSuite.scala
index 13612e9a4a..5741906a14 100644
--- a/mllib/src/test/scala/spark/mllib/classification/LogisticRegressionSuite.scala
+++ b/mllib/src/test/scala/spark/mllib/classification/LogisticRegressionSuite.scala
@@ -18,7 +18,7 @@ class LogisticRegressionSuite extends FunSuite with BeforeAndAfterAll {
}
// Test if we can correctly learn A, B where Y = logistic(A + B*X)
- test("logistic regression") {
+ test("LogisticRegression_LocalRandomSGD") {
val nPoints = 10000
val rnd = new Random(42)
@@ -45,7 +45,7 @@ class LogisticRegressionSuite extends FunSuite with BeforeAndAfterAll {
val testRDD = sc.parallelize(testData, 2)
testRDD.cache()
- val lr = new LogisticRegression().setStepSize(10.0)
+ val lr = new LogisticRegression_LocalRandomSGD().setStepSize(10.0)
.setNumIterations(20)
val model = lr.train(testRDD)
diff --git a/mllib/src/test/scala/spark/mllib/classification/SVMSuite.scala b/mllib/src/test/scala/spark/mllib/classification/SVMSuite.scala
index e3a6681ab2..50cf260f49 100644
--- a/mllib/src/test/scala/spark/mllib/classification/SVMSuite.scala
+++ b/mllib/src/test/scala/spark/mllib/classification/SVMSuite.scala
@@ -19,7 +19,7 @@ class SVMSuite extends FunSuite with BeforeAndAfterAll {
System.clearProperty("spark.driver.port")
}
- test("SVM") {
+ test("SVM_LocalRandomSGD") {
val nPoints = 10000
val rnd = new Random(42)
@@ -46,7 +46,7 @@ class SVMSuite extends FunSuite with BeforeAndAfterAll {
writer_data.write("\n")})
writer_data.close()
- val svm = new SVM().setStepSize(1.0)
+ val svm = new SVM_LocalRandomSGD().setStepSize(1.0)
.setRegParam(1.0)
.setNumIterations(100)
diff --git a/mllib/src/test/scala/spark/mllib/regression/LassoSuite.scala b/mllib/src/test/scala/spark/mllib/regression/LassoSuite.scala
index 90fedb3e84..9836ac54c1 100644
--- a/mllib/src/test/scala/spark/mllib/regression/LassoSuite.scala
+++ b/mllib/src/test/scala/spark/mllib/regression/LassoSuite.scala
@@ -17,7 +17,7 @@ class LassoSuite extends FunSuite with BeforeAndAfterAll {
System.clearProperty("spark.driver.port")
}
- test("Lasso") {
+ test("Lasso_LocalRandomSGD") {
val nPoints = 10000
val rnd = new Random(42)
@@ -36,7 +36,7 @@ class LassoSuite extends FunSuite with BeforeAndAfterAll {
val testRDD = sc.parallelize(testData, 2)
testRDD.cache()
- val ls = new Lasso().setStepSize(1.0)
+ val ls = new Lasso_LocalRandomSGD().setStepSize(1.0)
.setRegParam(0.01)
.setNumIterations(20)