aboutsummaryrefslogtreecommitdiff
path: root/docs/mllib-basics.md
diff options
context:
space:
mode:
authorDB Tsai <dbtsai@alpinenow.com>2014-05-08 17:52:32 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-05-08 17:52:32 -0700
commitd38febee46ed156b0c8ec64757db6c290e488421 (patch)
tree744155c8413eae1564f15ba326ccf805e59e90e4 /docs/mllib-basics.md
parent322b1808d21143dc323493203929488d69e8878a (diff)
downloadspark-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-basics.md')
-rw-r--r--docs/mllib-basics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/mllib-basics.md b/docs/mllib-basics.md
index 704308802d..aa9321a547 100644
--- a/docs/mllib-basics.md
+++ b/docs/mllib-basics.md
@@ -184,7 +184,7 @@ After loading, the feature indices are converted to zero-based.
<div class="codetabs">
<div data-lang="scala" markdown="1">
-[`MLUtils.loadLibSVMData`](api/mllib/index.html#org.apache.spark.mllib.util.MLUtils$) reads training
+[`MLUtils.loadLibSVMFile`](api/mllib/index.html#org.apache.spark.mllib.util.MLUtils$) reads training
examples stored in LIBSVM format.
{% highlight scala %}
@@ -192,12 +192,12 @@ import org.apache.spark.mllib.regression.LabeledPoint
import org.apache.spark.mllib.util.MLUtils
import org.apache.spark.rdd.RDD
-val training: RDD[LabeledPoint] = MLUtils.loadLibSVMData(sc, "mllib/data/sample_libsvm_data.txt")
+val training: RDD[LabeledPoint] = MLUtils.loadLibSVMFile(sc, "mllib/data/sample_libsvm_data.txt")
{% endhighlight %}
</div>
<div data-lang="java" markdown="1">
-[`MLUtils.loadLibSVMData`](api/mllib/index.html#org.apache.spark.mllib.util.MLUtils$) reads training
+[`MLUtils.loadLibSVMFile`](api/mllib/index.html#org.apache.spark.mllib.util.MLUtils$) reads training
examples stored in LIBSVM format.
{% highlight java %}
@@ -205,7 +205,7 @@ import org.apache.spark.mllib.regression.LabeledPoint;
import org.apache.spark.mllib.util.MLUtils;
import org.apache.spark.rdd.RDDimport;
-RDD<LabeledPoint> training = MLUtils.loadLibSVMData(jsc, "mllib/data/sample_libsvm_data.txt");
+RDD<LabeledPoint> training = MLUtils.loadLibSVMFile(jsc, "mllib/data/sample_libsvm_data.txt");
{% endhighlight %}
</div>
</div>