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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfeatures()doublegetLabel()doublelabel()static LabeledPointParses a string resulted fromLabeledPoint#toStringinto anLabeledPoint.toString()Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
LabeledPoint
 
- 
- 
Method Details- 
parseParses a string resulted fromLabeledPoint#toStringinto anLabeledPoint.- Parameters:
- s- (undocumented)
- Returns:
- (undocumented)
 
- 
labelpublic double label()
- 
features
- 
getLabelpublic double getLabel()
- 
getFeatures
- 
toString
 
-