public class XGBoostUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XGBoostUtils.FeatureProperties |
| Constructor and Description |
|---|
XGBoostUtils() |
| Modifier and Type | Method and Description |
|---|---|
static XGBoostUtils.FeatureProperties |
assembleFeatureNames(hex.DataInfo di) |
static ml.dmlc.xgboost4j.java.DMatrix |
convertChunksToDMatrix(hex.DataInfo di,
water.fvec.Chunk[] chunks,
int response,
boolean sparse,
int offset)
convert a set of H2O chunks (representing a part of a vector) to a sparse DMatrix
|
static MatrixLoader.DMatrixProvider |
convertFrameToDMatrix(hex.DataInfo di,
water.fvec.Frame frame,
java.lang.String response,
java.lang.String weight,
java.lang.String offset,
boolean sparse)
convert an H2O Frame to a sparse DMatrix
|
static void |
createFeatureMap(XGBoostModel model,
water.fvec.Frame train) |
public static void createFeatureMap(XGBoostModel model, water.fvec.Frame train)
public static MatrixLoader.DMatrixProvider convertFrameToDMatrix(hex.DataInfo di, water.fvec.Frame frame, java.lang.String response, java.lang.String weight, java.lang.String offset, boolean sparse)
di - data infoframe - 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,
int offset)
throws ml.dmlc.xgboost4j.java.XGBoostError
ml.dmlc.xgboost4j.java.XGBoostErrorpublic static XGBoostUtils.FeatureProperties assembleFeatureNames(hex.DataInfo di)