org.apache.spark.mllib.regression
Class LabeledPoint
Object
org.apache.spark.mllib.regression.LabeledPoint
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class LabeledPoint
- extends Object
- implements 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:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
LabeledPoint
public LabeledPoint(double label,
Vector features)
parse
public static LabeledPoint parse(String s)
label
public double label()
features
public Vector features()
toString
public String toString()
- Overrides:
toString
in class Object