diff options
author | Shivaram Venkataraman <shivaram@eecs.berkeley.edu> | 2013-07-18 11:57:14 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@eecs.berkeley.edu> | 2013-07-18 11:57:14 -0700 |
commit | 2c9ea56db4a1f4324f1dc8fadaf2491d83eda8ca (patch) | |
tree | 682e81a187e767a4e476bbdf89a4f039a5e0e30a /mllib/src | |
parent | 7ab1170503ab46ffd838fb98590dd3d66748dd38 (diff) | |
download | spark-2c9ea56db4a1f4324f1dc8fadaf2491d83eda8ca.tar.gz spark-2c9ea56db4a1f4324f1dc8fadaf2491d83eda8ca.tar.bz2 spark-2c9ea56db4a1f4324f1dc8fadaf2491d83eda8ca.zip |
Rename classes to be called DataGenerator
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/spark/mllib/util/LogisticRegressionDataGenerator.scala (renamed from mllib/src/main/scala/spark/mllib/util/LogisticRegressionGenerator.scala) | 0 | ||||
-rw-r--r-- | mllib/src/main/scala/spark/mllib/util/RidgeRegressionDataGenerator.scala (renamed from mllib/src/main/scala/spark/mllib/util/RidgeRegressionGenerator.scala) | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/mllib/src/main/scala/spark/mllib/util/LogisticRegressionGenerator.scala b/mllib/src/main/scala/spark/mllib/util/LogisticRegressionDataGenerator.scala index 8d659cd97c..8d659cd97c 100644 --- a/mllib/src/main/scala/spark/mllib/util/LogisticRegressionGenerator.scala +++ b/mllib/src/main/scala/spark/mllib/util/LogisticRegressionDataGenerator.scala diff --git a/mllib/src/main/scala/spark/mllib/util/RidgeRegressionGenerator.scala b/mllib/src/main/scala/spark/mllib/util/RidgeRegressionDataGenerator.scala index 6861913dc7..c5b8a29942 100644 --- a/mllib/src/main/scala/spark/mllib/util/RidgeRegressionGenerator.scala +++ b/mllib/src/main/scala/spark/mllib/util/RidgeRegressionDataGenerator.scala @@ -23,8 +23,7 @@ import org.jblas.DoubleMatrix import spark.{RDD, SparkContext} - -object RidgeRegressionGenerator { +object RidgeRegressionDataGenerator { /** * Generate an RDD containing test data used for RidgeRegression. This function generates @@ -82,7 +81,7 @@ object RidgeRegressionGenerator { val parts: Int = if (args.length > 4) args(4).toInt else 2 val eps = 10 - val sc = new SparkContext(sparkMaster, "RidgeRegressionGenerator") + val sc = new SparkContext(sparkMaster, "RidgeRegressionDataGenerator") val data = generateRidgeRDD(sc, nexamples, nfeatures, eps, parts) MLUtils.saveLabeledData(data, outputPath) |