Emre Sevinç created SPARK-5805:
----------------------------------
Summary: 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.1, 1.2.0
Reporter: Emre Sevinç
Priority: Minor
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: [email protected]
For additional commands, e-mail: [email protected]