You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/09/11 17:27:45 UTC
[jira] [Resolved] (SPARK-10518) Update code examples in spark.ml
user guide to use LIBSVM data source instead of MLUtils
[ https://issues.apache.org/jira/browse/SPARK-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiangrui Meng resolved SPARK-10518.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
Issue resolved by pull request 8697
[https://github.com/apache/spark/pull/8697]
> Update code examples in spark.ml user guide to use LIBSVM data source instead of MLUtils
> ----------------------------------------------------------------------------------------
>
> Key: SPARK-10518
> URL: https://issues.apache.org/jira/browse/SPARK-10518
> Project: Spark
> Issue Type: Improvement
> Components: Documentation, MLlib
> Affects Versions: 1.5.0
> Reporter: Xiangrui Meng
> Priority: Minor
> Labels: starter
> Fix For: 1.6.0
>
>
> SPARK-10117 was merged, we should use LIBSVM data source in the example code in spark.ml user guide, e.g.,
> {code}
> val df = sqlContext.read.format("libsvm").load("path")
> {code}
> instead of
> {code}
> val df = MLUtils.loadLibSVMFile(sc, "path").toDF()
> {code}
> We should update the following:
> {code}
> ml-ensembles.md:40:val data = MLUtils.loadLibSVMFile(sc,
> ml-ensembles.md:87:RDD<LabeledPoint> data = MLUtils.loadLibSVMFile(jsc.sc(),
> ml-features.md:866:val data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt").toDF()
> ml-features.md:892:JavaRDD<LabeledPoint> rdd = MLUtils.loadLibSVMFile(sc.sc(),
> ml-features.md:917:data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt").toDF()
> ml-features.md:940:val data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> ml-features.md:964: MLUtils.loadLibSVMFile(jsc.sc(), "data/mllib/sample_libsvm_data.txt").toJavaRDD();
> ml-features.md:985:data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> ml-features.md:1022:val data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> ml-features.md:1047: MLUtils.loadLibSVMFile(jsc.sc(), "data/mllib/sample_libsvm_data.txt").toJavaRDD();
> ml-features.md:1068:data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> ml-linear-methods.md:44:val training = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt").toDF()
> ml-linear-methods.md:84: DataFrame training = sql.createDataFrame(MLUtils.loadLibSVMFile(sc, path).toJavaRDD(), LabeledPoint.class);
> ml-linear-methods.md:110:training = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt").toDF()
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org