Skip to content
Snippets Groups Projects
Commit 2b2630ba authored by Xinghao's avatar Xinghao
Browse files

Style fix

Lines shortened to < 100 characters
parent 07f17439
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,8 @@ object LassoGenerator { ...@@ -26,7 +26,8 @@ object LassoGenerator {
val sc = new SparkContext(sparkMaster, "LassoGenerator") val sc = new SparkContext(sparkMaster, "LassoGenerator")
val globalRnd = new Random(94720) val globalRnd = new Random(94720)
val trueWeights = new DoubleMatrix(1, nfeatures+1, Array.fill[Double](nfeatures + 1) { globalRnd.nextGaussian() }:_*) val trueWeights = new DoubleMatrix(1, nfeatures+1,
Array.fill[Double](nfeatures + 1) { globalRnd.nextGaussian() }:_*)
val data: RDD[(Double, Array[Double])] = sc.parallelize(0 until nexamples, parts).map { idx => val data: RDD[(Double, Array[Double])] = sc.parallelize(0 until nexamples, parts).map { idx =>
val rnd = new Random(42 + idx) val rnd = new Random(42 + idx)
......
...@@ -29,7 +29,8 @@ object SVMGenerator { ...@@ -29,7 +29,8 @@ object SVMGenerator {
val sc = new SparkContext(sparkMaster, "SVMGenerator") val sc = new SparkContext(sparkMaster, "SVMGenerator")
val globalRnd = new Random(94720) val globalRnd = new Random(94720)
val trueWeights = new DoubleMatrix(1, nfeatures+1, Array.fill[Double](nfeatures + 1) { globalRnd.nextGaussian() }:_*) val trueWeights = new DoubleMatrix(1, nfeatures+1,
Array.fill[Double](nfeatures + 1) { globalRnd.nextGaussian() }:_*)
val data: RDD[(Double, Array[Double])] = sc.parallelize(0 until nexamples, parts).map { idx => val data: RDD[(Double, Array[Double])] = sc.parallelize(0 until nexamples, parts).map { idx =>
val rnd = new Random(42 + idx) val rnd = new Random(42 + idx)
......
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