public class XGBoostUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
XGBoostUtils.SparseMatrix
Sparse Matrix representation for XGBoost
|
protected static class |
XGBoostUtils.SparseMatrixDimensions
Dimensions of a Sparse Matrix
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SPARSE_MATRIX_DIM |
| Constructor and Description |
|---|
XGBoostUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static XGBoostUtils.SparseMatrix |
allocateCSRMatrix(XGBoostUtils.SparseMatrixDimensions sparseMatrixDimensions)
Creates a
XGBoostUtils.SparseMatrix object with pre-instantiated backing arrays for row-oriented compression schema (CSR). |
static hex.tree.xgboost.XGBoostUtils.FeatureProperties |
assembleFeatureNames(hex.DataInfo di) |
protected static XGBoostUtils.SparseMatrixDimensions |
calculateCSRMatrixDimensions(water.fvec.Chunk[] chunks,
hex.DataInfo di,
int weightColIndex) |
static ml.dmlc.xgboost4j.java.DMatrix |
convertChunksToDMatrix(hex.DataInfo di,
water.fvec.Chunk[] chunks,
int response,
boolean sparse)
convert a set of H2O chunks (representing a part of a vector) to a sparse DMatrix
|
static ml.dmlc.xgboost4j.java.DMatrix |
convertFrameToDMatrix(hex.DataInfo di,
water.fvec.Frame f,
java.lang.String response,
java.lang.String weight,
boolean sparse)
convert an H2O Frame to a sparse DMatrix
|
static java.lang.String |
makeFeatureMap(water.fvec.Frame f,
hex.DataInfo di) |
public static java.lang.String makeFeatureMap(water.fvec.Frame f,
hex.DataInfo di)
public static ml.dmlc.xgboost4j.java.DMatrix convertFrameToDMatrix(hex.DataInfo di,
water.fvec.Frame f,
java.lang.String response,
java.lang.String weight,
boolean sparse)
throws ml.dmlc.xgboost4j.java.XGBoostError
di - data infof - H2O Frame - adapted using a provided data inforesponse - name of the response columnweight - name of the weight columnml.dmlc.xgboost4j.java.XGBoostErrorpublic static ml.dmlc.xgboost4j.java.DMatrix convertChunksToDMatrix(hex.DataInfo di,
water.fvec.Chunk[] chunks,
int response,
boolean sparse)
throws ml.dmlc.xgboost4j.java.XGBoostError
response - name of the response columnml.dmlc.xgboost4j.java.XGBoostErrorprotected static XGBoostUtils.SparseMatrix allocateCSRMatrix(XGBoostUtils.SparseMatrixDimensions sparseMatrixDimensions)
XGBoostUtils.SparseMatrix object with pre-instantiated backing arrays for row-oriented compression schema (CSR).
All backing arrays are allocated using MemoryManager.sparseMatrixDimensions - Dimensions of a sparse matrixXGBoostUtils.SparseMatrix with pre-allocated backing arrays.protected static XGBoostUtils.SparseMatrixDimensions calculateCSRMatrixDimensions(water.fvec.Chunk[] chunks, hex.DataInfo di, int weightColIndex)
public static hex.tree.xgboost.XGBoostUtils.FeatureProperties assembleFeatureNames(hex.DataInfo di)