Class LabeledPoint

Object
org.apache.spark.ml.feature.LabeledPoint
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class LabeledPoint extends Object implements scala.Product, Serializable
Class that represents the features and label of a data point.

param: label Label for this data point. param: features List of features for this data point.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    LabeledPoint(double label, Vector features)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1, T2 v2)
     
     
     
    double
     
    double
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

    • LabeledPoint

      public LabeledPoint(double label, Vector features)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2)
    • label

      public double label()
    • features

      public Vector features()
    • getLabel

      public double getLabel()
    • getFeatures

      public Vector getFeatures()
    • toString

      public String toString()
      Overrides:
      toString in class Object