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.
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() |
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 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