xgboost4j_2.12 1.6.2 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package ml
  Definition Classes
    root
-  package dmlc
  Definition Classes
    ml
-  package xgboost4j
  Definition Classes
    dmlc
-  package java
-  package scala
- LabeledPoint

p

ml.dmlc

# xgboost4j 

#### package xgboost4j

### Type Members

1.  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.

   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`

### Ungrouped