Class LabeledPoint

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

public class LabeledPoint extends Object implements scala.Product, scala.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 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