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