Class LabeledPoint
Object
org.apache.spark.mllib.regression.LabeledPoint
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Serializable
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
-
Method Summary
Modifier and TypeMethodDescriptionfeatures()
double
getLabel()
double
label()
static LabeledPoint
Parses a string resulted fromLabeledPoint#toString
into anLabeledPoint
.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
LabeledPoint
-
-
Method Details
-
parse
Parses a string resulted fromLabeledPoint#toString
into anLabeledPoint
.- Parameters:
s
- (undocumented)- Returns:
- (undocumented)
-
label
public double label() -
features
-
getLabel
public double getLabel() -
getFeatures
-
toString
-