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 |
---|---|
abstract static boolean |
canEqual(java.lang.Object that) |
abstract static boolean |
equals(java.lang.Object that) |
Vector |
features() |
double |
label() |
static LabeledPoint |
parse(java.lang.String s)
Parses a string resulted from
LabeledPoint#toString into
an LabeledPoint . |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public LabeledPoint(double label, Vector features)
public static LabeledPoint parse(java.lang.String s)
LabeledPoint#toString
into
an LabeledPoint
.
s
- (undocumented)public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public double label()
public Vector features()
public java.lang.String toString()
toString
in class java.lang.Object