[ 
https://issues.apache.org/jira/browse/SPARK-15449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294237#comment-15294237
 ] 

Miao Wang commented on SPARK-15449:
-----------------------------------

This example doesn't require libsvm format as it has its own data parsing 
function.

Otherwise, it can use sc.read.format("libsvm") to load data.

> Wrong Data Format - Documentation Issue
> ---------------------------------------
>
>                 Key: SPARK-15449
>                 URL: https://issues.apache.org/jira/browse/SPARK-15449
>             Project: Spark
>          Issue Type: Documentation
>          Components: Examples
>    Affects Versions: 1.6.1
>            Reporter: Kiran Biradarpatil
>            Priority: Minor
>             Fix For: 1.6.1
>
>
> JAVA example given for MLLib NaiveBayes at 
> http://spark.apache.org/docs/latest/mllib-naive-bayes.html expects the data 
> in LibSVM format. But the example data in MLLib 
> data/mllib/sample_naive_bayes_data.txt is not in right format. 
> So please rectify the sample data file or the the implementation example.
> Thanks!
> Kiran 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to