Medial Code Documentation
|
The abstracted XGBoost ColumnBatch to get array interface from columnar data format. More...
Public Member Functions | |
final String | getArrayInterfaceJson () |
Get the cuda array interface json string for the whole ColumnBatch including the must-have feature, label columns and the optional weight, base margin columns. | |
abstract String | getFeatureArrayInterface () |
Get the cuda array interface of the feature columns. | |
abstract String | getLabelsArrayInterface () |
Get the cuda array interface of the label columns. | |
abstract String | getWeightsArrayInterface () |
Get the cuda array interface of the weight columns. | |
abstract String | getBaseMarginsArrayInterface () |
Get the cuda array interface of the base margin columns. | |
void | close () throws Exception |
The abstracted XGBoost ColumnBatch to get array interface from columnar data format.
For example, the cuDF dataframe which employs apache arrow specification.
|
inline |
Get the cuda array interface json string for the whole ColumnBatch including the must-have feature, label columns and the optional weight, base margin columns.
This function is be called by native code during iteration and can be made as private method. We keep it as public simply to silent the linter.
|
abstract |
Get the cuda array interface of the base margin columns.
The returned value can be null or empty
|
abstract |
Get the cuda array interface of the feature columns.
The returned value must not be null or empty
|
abstract |
Get the cuda array interface of the label columns.
The returned value must not be null or empty if we're creating QuantileDMatrix#QuantileDMatrix(Iterator, float, int, int)
|
abstract |
Get the cuda array interface of the weight columns.
The returned value can be null or empty