diff options
author | DB Tsai <dbtsai@alpinenow.com> | 2014-05-08 17:52:32 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-05-08 17:52:32 -0700 |
commit | d38febee46ed156b0c8ec64757db6c290e488421 (patch) | |
tree | 744155c8413eae1564f15ba326ccf805e59e90e4 /docs/mllib-linear-methods.md | |
parent | 322b1808d21143dc323493203929488d69e8878a (diff) | |
download | spark-d38febee46ed156b0c8ec64757db6c290e488421.tar.gz spark-d38febee46ed156b0c8ec64757db6c290e488421.tar.bz2 spark-d38febee46ed156b0c8ec64757db6c290e488421.zip |
MLlib documentation fix
Fixed the documentation for that `loadLibSVMData` is changed to `loadLibSVMFile`.
Author: DB Tsai <dbtsai@alpinenow.com>
Closes #703 from dbtsai/dbtsai-docfix and squashes the following commits:
71dd508 [DB Tsai] loadLibSVMData is changed to loadLibSVMFile
Diffstat (limited to 'docs/mllib-linear-methods.md')
-rw-r--r-- | docs/mllib-linear-methods.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/mllib-linear-methods.md b/docs/mllib-linear-methods.md index 40b7a7f807..eff617d864 100644 --- a/docs/mllib-linear-methods.md +++ b/docs/mllib-linear-methods.md @@ -186,7 +186,7 @@ import org.apache.spark.mllib.linalg.Vectors import org.apache.spark.mllib.util.MLUtils // Load training data in LIBSVM format. -val data = MLUtils.loadLibSVMData(sc, "mllib/data/sample_libsvm_data.txt") +val data = MLUtils.loadLibSVMFile(sc, "mllib/data/sample_libsvm_data.txt") // Split data into training (60%) and test (40%). val splits = data.randomSplit(Array(0.6, 0.4), seed = 11L) |