org.apache.spark.mllib.regression
Class LabeledPoint

Object
  extended by 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

Constructor Summary
LabeledPoint(double label, Vector features)
           
 
Method Summary
 Vector features()
           
 double label()
           
static LabeledPoint parse(String s)
           
 String toString()
           
 
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
 

Constructor Detail

LabeledPoint

public LabeledPoint(double label,
                    Vector features)
Method Detail

parse

public static LabeledPoint parse(String s)

label

public double label()

features

public Vector features()

toString

public String toString()
Overrides:
toString in class Object