public class LabeledPoint
extends java.lang.Object
implements scala.Product, scala.Serializable
param: label Label for this data point. param: features List of features for this data point.
| Constructor and Description |
|---|
LabeledPoint(double label,
Vector features) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
features() |
double |
label() |
static LabeledPoint |
parse(java.lang.String s)
Parses a string resulted from
LabeledPoint#toString into
an LabeledPoint. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic LabeledPoint(double label,
Vector features)
public static LabeledPoint parse(java.lang.String s)
LabeledPoint#toString into
an LabeledPoint.
s - (undocumented)public double label()
public Vector features()
public java.lang.String toString()
toString in class java.lang.Object