public class BoosterHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BoosterHelper.BoosterOp<X> |
| Constructor and Description |
|---|
BoosterHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dispose(java.lang.Object... xgbObjects)
Invalidates XGBoost objects (Booster, DMatrix) and frees up their memory
|
static <X> X |
doWithLocalRabit(BoosterHelper.BoosterOp<X> op,
ai.h2o.xgboost4j.java.Booster booster) |
static ai.h2o.xgboost4j.java.Booster |
loadModel(byte[] boosterBytes) |
static ai.h2o.xgboost4j.java.Booster |
loadModel(java.io.InputStream in) |
public static ai.h2o.xgboost4j.java.Booster loadModel(java.io.InputStream in)
public static ai.h2o.xgboost4j.java.Booster loadModel(byte[] boosterBytes)
public static void dispose(java.lang.Object... xgbObjects)
throws java.lang.IllegalStateException
xgbObjects - list of XGBoost objectsjava.lang.IllegalStateException - when object invalidation fails, only the first exception will be reported (as the
exception cause), we assume the other ones will have a same reasonpublic static <X> X doWithLocalRabit(BoosterHelper.BoosterOp<X> op, ai.h2o.xgboost4j.java.Booster booster) throws ai.h2o.xgboost4j.java.XGBoostError
ai.h2o.xgboost4j.java.XGBoostError