Package ml.dmlc.xgboost4j.java
Class DataBatch
java.lang.Object
ml.dmlc.xgboost4j.java.DataBatch
A mini-batch of data that can be converted to DMatrix.
The data is in sparse matrix CSR format.
This class is used to support advanced creation of DMatrix from Iterator of DataBatch,
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[]
index of each feature(column) in the sparse matrix(package private) final float[]
value of each non-missing entry in the sparse matrix(package private) final float[]
label of each data point, can be nullprivate static final org.apache.commons.logging.Log
(package private) final long[]
The offset of each rows in the sparse matrix(package private) final float[]
weight of each data point, can be null -
Constructor Summary
ConstructorsConstructorDescriptionDataBatch
(long[] rowOffset, float[] weight, float[] label, int[] featureIndex, float[] featureValue) -
Method Summary
-
Field Details
-
logger
private static final org.apache.commons.logging.Log logger -
rowOffset
final long[] rowOffsetThe offset of each rows in the sparse matrix -
weight
final float[] weightweight of each data point, can be null -
label
final float[] labellabel of each data point, can be null -
featureIndex
final int[] featureIndexindex of each feature(column) in the sparse matrix -
featureValue
final float[] featureValuevalue of each non-missing entry in the sparse matrix
-
-
Constructor Details
-
DataBatch
DataBatch(long[] rowOffset, float[] weight, float[] label, int[] featureIndex, float[] featureValue)
-