Skip to content
Snippets Groups Projects
Commit 2c9ea56d authored by Shivaram Venkataraman's avatar Shivaram Venkataraman
Browse files

Rename classes to be called DataGenerator

parent 7ab11705
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment