public class DeviceQuantileDMatrix extends DMatrix
DMatrix.SparseType| Constructor and Description |
|---|
DeviceQuantileDMatrix(Iterator<ColumnBatch> iter,
float missing,
int maxBin,
int nthread)
Create DeviceQuantileDMatrix from iterator based on the cuda array interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
setBaseMargin(Column column)
Set base margin of DMatrix from cuda array interface
|
void |
setBaseMargin(float[] baseMargin)
Set base margin (initial prediction).
|
void |
setBaseMargin(float[][] baseMargin)
Set base margin (initial prediction).
|
void |
setGroup(int[] group)
Set group sizes of DMatrix (used for ranking)
|
void |
setLabel(Column column)
Set label of DMatrix from cuda array interface
|
void |
setLabel(float[] labels)
set label of dmatrix
|
void |
setWeight(Column column)
Set weight of DMatrix from cuda array interface
|
void |
setWeight(float[] weights)
set weight of each instance
|
public DeviceQuantileDMatrix(Iterator<ColumnBatch> iter, float missing, int maxBin, int nthread) throws XGBoostError
iter - the XGBoost ColumnBatch batch to provide the corresponding cuda array interfacemissing - the missing valuemaxBin - the max binnthread - the parallelismXGBoostErrorpublic void setLabel(Column column) throws XGBoostError
DMatrixsetLabel in class DMatrixcolumn - the XGBoost Column to provide the cuda array interface
of label columnXGBoostError - native errorpublic void setWeight(Column column) throws XGBoostError
DMatrixsetWeight in class DMatrixcolumn - the XGBoost Column to provide the cuda array interface
of weight columnXGBoostError - native errorpublic void setBaseMargin(Column column) throws XGBoostError
DMatrixsetBaseMargin in class DMatrixcolumn - the XGBoost Column to provide the cuda array interface
of base margin columnXGBoostError - native errorpublic void setLabel(float[] labels)
throws XGBoostError
DMatrixsetLabel in class DMatrixlabels - labelsXGBoostError - native errorpublic void setWeight(float[] weights)
throws XGBoostError
DMatrixsetWeight in class DMatrixweights - weightsXGBoostError - native errorpublic void setBaseMargin(float[] baseMargin)
throws XGBoostError
DMatrixsetBaseMargin in class DMatrixXGBoostErrorpublic void setBaseMargin(float[][] baseMargin)
throws XGBoostError
DMatrixsetBaseMargin in class DMatrixXGBoostErrorpublic void setGroup(int[] group)
throws XGBoostError
DMatrixsetGroup in class DMatrixgroup - group size as arrayXGBoostError - native errorCopyright © 2022. All rights reserved.