Details
-
Documentation
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.2.0, 1.2.1
Description
The final example in MLlib - Clustering documentation has a code line that leads to a type error.
The problematic line reads as:
model.predictOnValues(testData).print()
but it should be
model.predictOnValues(testData.map(lp => (lp.label, lp.features))).print()
Attachments
Issue Links
- is duplicated by
-
SPARK-5819 Backport of SPARK-5805 to branch-1.2
- Closed
- links to