Skip to content

Commit 2d4f9b8

Browse files
committed
use correct regression data in train-validation-split example
1 parent eb91729 commit 2d4f9b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ml-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ import org.apache.spark.ml.regression.LinearRegression
870870
import org.apache.spark.ml.tuning.{ParamGridBuilder, TrainValidationSplit}
871871

872872
// Prepare training and test data.
873-
val data = sqlContext.read.format("libsvm").load("data/mllib/sample_libsvm_data.txt")
873+
val data = sqlContext.read.format("libsvm").load("data/mllib/sample_linear_regression_data.txt")
874874
val Array(training, test) = data.randomSplit(Array(0.9, 0.1), seed = 12345)
875875

876876
val lr = new LinearRegression()

0 commit comments

Comments
 (0)