public class XGBoostUtils
extends java.lang.Object
| Constructor and Description |
|---|
XGBoostUtils() |
| Modifier and Type | Method and Description |
|---|---|
static hex.tree.xgboost.XGBoostUtils.FeatureProperties |
assembleFeatureNames(hex.DataInfo di) |
static ml.dmlc.xgboost4j.java.DMatrix |
convertChunksToDMatrix(water.Key<hex.DataInfo> dataInfoKey,
water.fvec.Chunk[] chunks,
int response,
int weight,
int fold,
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(water.Key<hex.DataInfo> dataInfoKey,
water.fvec.Frame f,
boolean onlyLocal,
java.lang.String response,
java.lang.String weight,
java.lang.String fold,
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(water.Key<hex.DataInfo> dataInfoKey,
water.fvec.Frame f,
boolean onlyLocal,
java.lang.String response,
java.lang.String weight,
java.lang.String fold,
boolean sparse)
throws ml.dmlc.xgboost4j.java.XGBoostError
f - H2O FrameonlyLocal - if true uses only chunks local to this noderesponse - name of the response columnweight - name of the weight columnfold - name of the fold assignment columnml.dmlc.xgboost4j.java.XGBoostErrorpublic static ml.dmlc.xgboost4j.java.DMatrix convertChunksToDMatrix(water.Key<hex.DataInfo> dataInfoKey,
water.fvec.Chunk[] chunks,
int response,
int weight,
int fold,
boolean sparse)
throws ml.dmlc.xgboost4j.java.XGBoostError
response - name of the response columnweight - name of the weight columnfold - name of the fold assignment columnml.dmlc.xgboost4j.java.XGBoostErrorpublic static hex.tree.xgboost.XGBoostUtils.FeatureProperties assembleFeatureNames(hex.DataInfo di)