Packages

c

ml.dmlc.xgboost4j

LabeledPoint

case class LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float = 1f, group: Int = -1, baseMargin: Float = Float.NaN) extends Serializable with Product

Labeled training data point.

label

Label of this point.

size

Feature dimensionality

indices

Feature indices of this point or null if the data is dense.

values

Feature values of this point.

weight

Weight of this point.

group

Group of this point (used for ranking) or -1.

baseMargin

Initial prediction on this point or Float.NaN

Source
LabeledPoint.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LabeledPoint
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float])
  2. new LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float = 1f, group: Int = -1, baseMargin: Float = Float.NaN)

    label

    Label of this point.

    size

    Feature dimensionality

    indices

    Feature indices of this point or null if the data is dense.

    values

    Feature values of this point.

    weight

    Weight of this point.

    group

    Group of this point (used for ranking) or -1.

    baseMargin

    Initial prediction on this point or Float.NaN

Value Members

  1. val baseMargin: Float
  2. val group: Int
  3. val indices: Array[Int]
  4. val label: Float
  5. val size: Int
  6. val values: Array[Float]
  7. val weight: Float