Package org.tribuo.common.xgboost
Class XGBoostTrainer.DMatrixTuple<T extends Output<T>>
java.lang.Object
org.tribuo.common.xgboost.XGBoostTrainer.DMatrixTuple<T>
- Type Parameters:
T
- The output type.
- Enclosing class:
- XGBoostTrainer<T extends Output<T>>
Tuple of a DMatrix, the number of valid features in each example, and the examples themselves.
One day it'll be a record.
-
Field Summary
Modifier and TypeFieldDescriptionfinal ml.dmlc.xgboost4j.java.DMatrix
The data matrix.The examples.final int[]
The number of valid features in each example. -
Constructor Summary
ModifierConstructorDescriptionprotected
DMatrixTuple
(ml.dmlc.xgboost4j.java.DMatrix data, int[] numValidFeatures, Example<T>[] examples) Constructs a tuple containing the data and some Tribuo metadata. -
Method Summary
-
Field Details
-
data
public final ml.dmlc.xgboost4j.java.DMatrix dataThe data matrix. -
numValidFeatures
public final int[] numValidFeaturesThe number of valid features in each example. -
examples
The examples.
-
-
Constructor Details
-
DMatrixTuple
protected DMatrixTuple(ml.dmlc.xgboost4j.java.DMatrix data, int[] numValidFeatures, Example<T>[] examples) Constructs a tuple containing the data and some Tribuo metadata.- Parameters:
data
- The data matrix.numValidFeatures
- The number of valid features in each example.examples
- The examples.
-