Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-11207] Fix tests
  • Loading branch information
Lewuathe committed Oct 25, 2015
commit 0a4303356455f28ca3b87ffd446cb5ef5f25d0e2
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class LinearRegressionSuite extends SparkFunSuite with MLlibTestSparkContext {
// as the solver of linear regression in the case of "auto" mode.
val featureSize = 4100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a comment about this value 4100

datasetWithManyFeature = sqlContext.createDataFrame(
sc.parallelize(LinearDataGenerator.generateLinearSparseInput(
sc.parallelize(LinearDataGenerator.generateLinearInputInternal(
intercept = 0.0, weights = Seq.fill(featureSize)(r.nextDouble).toArray,
xMean = Seq.fill(featureSize)(r.nextDouble).toArray,
xVariance = Seq.fill(featureSize)(r.nextDouble).toArray, nPoints = 200,
Expand Down