public class XGBoostUtils
extends java.lang.Object
| Constructor and Description |
|---|
XGBoostUtils() |
| Modifier and Type | Method and Description |
|---|---|
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,
java.lang.String[] featureMap,
boolean sparse)
convert an H2O Frame to a sparse DMatrix
|
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,
java.lang.String[] featureMap,
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 columnfeatureMap - featureMap[0] will be populated with the column names and typesml.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.XGBoostError