[ 
https://issues.apache.org/jira/browse/SPARK-5805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiangrui Meng updated SPARK-5805:
---------------------------------
    Assignee: Emre Sevinç

> Fix the type error in the final example given in MLlib - Clustering 
> documentation
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-5805
>                 URL: https://issues.apache.org/jira/browse/SPARK-5805
>             Project: Spark
>          Issue Type: Documentation
>          Components: Documentation, MLlib
>    Affects Versions: 1.2.0, 1.2.1
>            Reporter: Emre Sevinç
>            Assignee: Emre Sevinç
>            Priority: Minor
>              Labels: documentation, easyfix, newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The final example in [MLlib - 
> Clustering|http://spark.apache.org/docs/1.2.0/mllib-clustering.html] 
> documentation has a code line that leads to a type error. 
> The problematic line reads as:
> {code}
> model.predictOnValues(testData).print()
> {code}
> but it should be
> {code}
> model.predictOnValues(testData.map(lp => (lp.label, lp.features))).print()
> {code}



--
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