Uses of Class
ml.dmlc.xgboost4j.java.DMatrix
-
Uses of DMatrix in ml.dmlc.xgboost4j.java
Fields in ml.dmlc.xgboost4j.java declared as DMatrixModifier and TypeFieldDescription(package private) DMatrix[]
XGBoost.CVPack.dmats
(package private) DMatrix
XGBoost.CVPack.dtest
(package private) DMatrix
XGBoost.CVPack.dtrain
Methods in ml.dmlc.xgboost4j.java that return DMatrixModifier and TypeMethodDescriptionDMatrix.slice
(int[] rowIndex) Slice the DMatrix and return a new DMatrix that only contains `rowIndex`.Methods in ml.dmlc.xgboost4j.java with parameters of type DMatrixModifier and TypeMethodDescriptionvoid
update with give grad and hessstatic String[]
XGBoost.crossValidation
(DMatrix data, Map<String, Object> params, int round, int nfold, String[] metrics, IObjective obj, IEvaluation eval) Cross-validation with given parameters.private static long[]
Booster.dmatrixsToHandles
(DMatrix[] dmatrixs) transfer DMatrix array to handle array (used for native functions)float
evaluate with predicts and dataevaluate with given dmatrixs.evaluate with given dmatrixs.Booster.evalSet
(DMatrix[] evalMatrixs, String[] evalNames, IEvaluation eval) evaluate with given customized Evaluation classBooster.evalSet
(DMatrix[] evalMatrixs, String[] evalNames, IEvaluation eval, float[] metricsOut) List<float[]>
IObjective.getGradient
(float[][] predicts, DMatrix dtrain) user define objective function, return gradient and second order gradientprivate void
Internal initialization function.private static XGBoost.CVPack[]
make an n-fold array of CVPack from random indicesfloat[][]
Predict with datafloat[][]
Predict with datafloat[][]
Advanced predict function with all the options.private float[][]
Booster.predict
(DMatrix data, boolean outputMargin, int treeLimit, boolean predLeaf, boolean predContribs) Advanced predict function with all the options.float[][]
Booster.predictContrib
(DMatrix data, int treeLimit) Output feature contributions toward predictions of given datafloat[][]
Booster.predictLeaf
(DMatrix data, int treeLimit) Predict leaf indices given the datastatic Booster
XGBoost.train
(DMatrix dtrain, Map<String, Object> params, int round, Map<String, DMatrix> watches, float[][] metrics, IObjective obj, IEvaluation eval, int earlyStoppingRound) Train a booster given parameters.static Booster
XGBoost.train
(DMatrix dtrain, Map<String, Object> params, int round, Map<String, DMatrix> watches, float[][] metrics, IObjective obj, IEvaluation eval, int earlyStoppingRounds, Booster booster) Train a booster given parameters.static Booster
XGBoost.train
(DMatrix dtrain, Map<String, Object> params, int round, Map<String, DMatrix> watches, IObjective obj, IEvaluation eval) Train a booster given parameters.void
Update the booster for one iteration.void
Booster.update
(DMatrix dtrain, IObjective obj) Update with customize obj funcConstructors in ml.dmlc.xgboost4j.java with parameters of type DMatrix