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,
ml.dmlc.xgboost4j.java.Booster booster) |
static ml.dmlc.xgboost4j.java.Booster |
loadModel(java.io.InputStream in) |
public static ml.dmlc.xgboost4j.java.Booster loadModel(java.io.InputStream in)
throws ml.dmlc.xgboost4j.java.XGBoostError,
java.io.IOException
ml.dmlc.xgboost4j.java.XGBoostErrorjava.io.IOExceptionpublic 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, ml.dmlc.xgboost4j.java.Booster booster) throws ml.dmlc.xgboost4j.java.XGBoostError
ml.dmlc.xgboost4j.java.XGBoostError