Uses of Class
ml.dmlc.xgboost4j.java.XGBoostError
Packages that use XGBoostError
-
Uses of XGBoostError in ml.dmlc.xgboost4j.java
Methods in ml.dmlc.xgboost4j.java that throw XGBoostErrorModifier and TypeMethodDescriptionvoidDeprecated.voidUpdate with give grad and hessvoidConfigContext.close()static voidCommunicator.communicatorPrint(String msg) Print the message via the communicator.static String[]XGBoost.crossValidation(DMatrix data, Map<String, Object> params, int round, int nfold, String[] metrics, IObjective obj, IEvaluation eval) Cross-validation with given parameters.Evaluate the Booster model with given dmatrixs.Evaluate the Booster model with given dmatrixs.Booster.evalSet(DMatrix[] evalMatrixs, String[] evalNames, IEvaluation eval) Evaluate the Booster model given customized Evaluation classBooster.evalSet(DMatrix[] evalMatrixs, String[] evalNames, IEvaluation eval, float[] metricsOut) final StringGet attribute value from the Booster based on the key provided.Booster.getAttrs()Get attributes stored in the Booster as a Map.float[]DMatrix.getBaseMargin()Get base margin of the DMatrix.final String[]Booster.getFeatureNames()Get all the feature names from the Booster.String[]DMatrix.getFeatureNames()Get feature namesBooster.getFeatureScore(String featureMap) Get importance of each featureBooster.getFeatureScore(String[] featureNames) Get importance of each feature with specified feature names.final String[]Booster.getFeatureTypes()Get feature types from the Booster.String[]DMatrix.getFeatureTypes()Get feature typesint[]DMatrix.getGroup()Get group sizes of DMatrixfloat[]DMatrix.getLabel()get label valuesString[]Booster.getModelDump(String[] featureNames, boolean withStats) Get the dump of the model as a string array with specified feature names.String[]Booster.getModelDump(String[] featureNames, boolean withStats, String format) Get the dump of the model as a string array with specified feature map, stats, and the specified format.String[]Booster.getModelDump(String featureMap, boolean withStats) Get the dump of the model as a string arrayString[]Booster.getModelDump(String featureMap, boolean withStats, String format) Get the dump of the model as a string array with specified feature map, stats, and the specified format.intBooster.getNumBoostedRound()longBooster.getNumFeature()Get number of model features.DMatrix.getQuantileCut()Get the Quantile Cut.static intCommunicator.getRank()get rank of current thread.Get the feature importances for gain or cover (average or total)Get the feature importances for gain or cover (average or total), with feature namesfloat[]DMatrix.getWeight()get weight of the DMatrixITracker.getWorkerArgs()RabitTracker.getWorkerArgs()Get environments that can be used to pass to worker.static intCommunicator.getWorldSize()get world size of current job.static voidInitialize the collective communicator on current working thread.float[][]Booster.inplace_predict(float[] data, int nrow, int ncol, float missing) Perform thread-safe prediction.float[][]Booster.inplace_predict(float[] data, int nrow, int ncol, float missing, int[] iteration_range) Perform thread-safe prediction.float[][]Booster.inplace_predict(float[] data, int nrow, int ncol, float missing, int[] iteration_range, Booster.PredictionType predict_type, float[] base_margin) Perform thread-safe prediction.ExternalCheckpointManager.loadCheckpointAsBooster()Read the checkpoint from the checkpoint path.static BoosterXGBoost.loadModel(byte[] buffer) Load a new Booster model from a byte array buffer.static BoosterXGBoost.loadModel(InputStream in) Load a new Booster model from a file opened as input stream.static Boosterload model from modelPathlongDMatrix.nonMissingNum()Get the number of non-missing values of DMatrix.float[][]Make a prediction with test data in a DMatrix format.float[][]Make a prediction with test data in a DMatrix format and output margin.float[][]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 datalongDMatrix.rowNum()get the row number of DMatrixvoidBooster.saveModel(OutputStream out) Save the model to file opened as output stream.voidBooster.saveModel(OutputStream out, String format) Save the model to file opened as output stream.voidSave model to modelPathfinal voidSet an attribute key-value pair to the Booster.voidSet multiple attribute key-value pairs to the Booster.voidDMatrix.setBaseMargin(float[] baseMargin) Set base margin (initial prediction).voidDMatrix.setBaseMargin(float[][] baseMargin) Set base margin (initial prediction).voidDMatrix.setBaseMargin(Column column) Set base margin of DMatrix from array interfacevoidSet one single configurationvoidConfigContext.setConfigs(Map<String, Object> configs) Set a bunch of configurationsvoidBooster.setFeatureNames(String[] featureNames) Set feature names to the Booster.voidDMatrix.setFeatureNames(String[] values) Set feature namesvoidBooster.setFeatureTypes(String[] featureTypes) Set feature types to the Booster.voidDMatrix.setFeatureTypes(String[] values) Set feature typesvoidDMatrix.setGroup(int[] group) Set group sizes of DMatrix (used for ranking)voidDMatrix.setLabel(float[] labels) set label of dmatrixvoidSet label of DMatrix from array interfacefinal voidSet parameter to the Booster.voidSet parameters to the Booster.voidDMatrix.setQueryId(int[] qid) Set query ids (used for ranking)voidDMatrix.setQueryId(Column column) Set query id of DMatrix from array interfacevoidDMatrix.setWeight(float[] weights) set weight of each instancevoidSet weight of DMatrix from array interfacestatic voidCommunicator.shutdown()Shutdown the communicator in current working thread, equals to finalize.DMatrix.slice(int[] rowIndex) Slice the DMatrix and return a new DMatrix that only contains `rowIndex`.booleanITracker.start()booleanRabitTracker.start()voidITracker.stop()voidRabitTracker.stop()byte[]Booster.toByteArray()Save model into raw byte array in the UBJSON ("ubj") format.byte[]Booster.toByteArray(String format) Save model into raw byte array.static BoosterXGBoost.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 BoosterXGBoost.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 BoosterXGBoost.train(DMatrix dtrain, Map<String, Object> params, int round, Map<String, DMatrix> watches, IObjective obj, IEvaluation eval) Train a booster given parameters.static BoosterXGBoost.trainAndSaveCheckpoint(DMatrix dtrain, Map<String, Object> params, int numRounds, Map<String, DMatrix> watches, float[][] metrics, IObjective obj, IEvaluation eval, int earlyStoppingRounds, Booster booster, int checkpointInterval, String checkpointPath, org.apache.hadoop.fs.FileSystem fs) voidUpdate the booster for one iteration.voidBooster.update(DMatrix dtrain, int iter, IObjective obj) Update with customize object functonvoidBooster.update(DMatrix dtrain, IObjective obj) Deprecated.voidExternalCheckpointManager.updateCheckpoint(Booster boosterToCheckpoint) This method updates the booster checkpoint to the the latest or current version and deleted all the previous versions of the checkpoint.voidITracker.waitFor(long taskExecutionTimeout) voidRabitTracker.waitFor(long timeout) Constructors in ml.dmlc.xgboost4j.java that throw XGBoostErrorModifierConstructorDescriptionConfigContext(Map<String, Object> params) DMatrix(float[] data, int nrow, int ncol) Deprecated.DMatrix(float[] data, int nrow, int ncol, float missing) create DMatrix from dense matrixDMatrix(long[] headers, int[] indices, float[] data, DMatrix.SparseType st) Deprecated.DMatrix(long[] headers, int[] indices, float[] data, DMatrix.SparseType st, int shapeParam) Create DMatrix from Sparse matrix in CSR/CSC format.DMatrix(long[] headers, int[] indices, float[] data, DMatrix.SparseType st, int shapeParam, float missing, int nthread) Create DMatrix by loading libsvm file from dataPathDMatrix(Iterator<LabeledPoint> iter, String cacheInfo) Create DMatrix from iterator.DMatrix(Iterator<LabeledPoint> iter, String cacheInfo, float missing) Create DMatrix from iterator.DMatrix(ColumnBatch columnBatch, float missing, int nthread) Create the normal DMatrix from column array interfaceDMatrix(BigDenseMatrix matrix) create DMatrix from a BigDenseMatrixDMatrix(BigDenseMatrix matrix, float missing) create DMatrix from dense matrixExternalCheckpointManager(String checkpointPath, org.apache.hadoop.fs.FileSystem fs) This constructor creates a new Expternal Checkpoint Manager at the specified path in the specified file system.RabitTracker(int numWorkers) RabitTracker(int numWorkers, String hostIp) RabitTracker(int numWorkers, String hostIp, int port, int timeout)
DMatrix(float[],int,int,float)