diff options
author | Sean Owen <sowen@cloudera.com> | 2014-07-13 19:27:43 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-07-13 19:27:43 -0700 |
commit | 635888cbed0e3f4127252fb84db449f0cc9ed659 (patch) | |
tree | 43433e3393c889f25a8ef4898099664a1a5ce0a7 /docs/mllib-basics.md | |
parent | 4c8be64e768fe71643b37f1e82f619c8aeac6eff (diff) | |
download | spark-635888cbed0e3f4127252fb84db449f0cc9ed659.tar.gz spark-635888cbed0e3f4127252fb84db449f0cc9ed659.tar.bz2 spark-635888cbed0e3f4127252fb84db449f0cc9ed659.zip |
SPARK-2363. Clean MLlib's sample data files
(Just made a PR for this, mengxr was the reporter of:)
MLlib has sample data under serveral folders:
1) data/mllib
2) data/
3) mllib/data/*
Per previous discussion with Matei Zaharia, we want to put them under `data/mllib` and clean outdated files.
Author: Sean Owen <sowen@cloudera.com>
Closes #1394 from srowen/SPARK-2363 and squashes the following commits:
54313dd [Sean Owen] Move ML example data from /mllib/data/ and /data/ into /data/mllib/
Diffstat (limited to 'docs/mllib-basics.md')
-rw-r--r-- | docs/mllib-basics.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/mllib-basics.md b/docs/mllib-basics.md index 5796e16e8f..f9585251fa 100644 --- a/docs/mllib-basics.md +++ b/docs/mllib-basics.md @@ -193,7 +193,7 @@ import org.apache.spark.mllib.regression.LabeledPoint import org.apache.spark.mllib.util.MLUtils import org.apache.spark.rdd.RDD -val examples: RDD[LabeledPoint] = MLUtils.loadLibSVMFile(sc, "mllib/data/sample_libsvm_data.txt") +val examples: RDD[LabeledPoint] = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt") {% endhighlight %} </div> @@ -207,7 +207,7 @@ import org.apache.spark.mllib.util.MLUtils; import org.apache.spark.api.java.JavaRDD; JavaRDD<LabeledPoint> examples = - MLUtils.loadLibSVMFile(jsc.sc(), "mllib/data/sample_libsvm_data.txt").toJavaRDD(); + MLUtils.loadLibSVMFile(jsc.sc(), "data/mllib/sample_libsvm_data.txt").toJavaRDD(); {% endhighlight %} </div> @@ -218,7 +218,7 @@ examples stored in LIBSVM format. {% highlight python %} from pyspark.mllib.util import MLUtils -examples = MLUtils.loadLibSVMFile(sc, "mllib/data/sample_libsvm_data.txt") +examples = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt") {% endhighlight %} </div> </div> |