Class LabeledPoint
Object
org.apache.spark.mllib.regression.LabeledPoint
- All Implemented Interfaces:
 Serializable,scala.Equals,scala.Product
Class that represents the features and labels of a data point.
 
param: label Label for this data point. param: features List of features for this data point.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfeatures()doublegetLabel()doublelabel()static LabeledPointParses a string resulted fromLabeledPoint#toStringinto anLabeledPoint.toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix 
- 
Constructor Details
- 
LabeledPoint
 
 - 
 - 
Method Details
- 
parse
Parses a string resulted fromLabeledPoint#toStringinto anLabeledPoint.- Parameters:
 s- (undocumented)- Returns:
 - (undocumented)
 
 - 
label
public double label() - 
features
 - 
getLabel
public double getLabel() - 
getFeatures
 - 
toString
 
 -