From af0cf3e02225f8fcd1102eb8baba4a2568a413f4 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Mon, 25 Sep 2023 18:25:27 +0800 Subject: [PATCH] cleanup --- .../java/ml/dmlc/xgboost4j/java/Booster.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Booster.java b/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Booster.java index 4fdce62eefbe..51959ce0cfb1 100644 --- a/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Booster.java +++ b/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Booster.java @@ -787,27 +787,6 @@ private Map getFeatureImportanceFromModel( return importanceMap; } - /** - * Save the model as byte array representation. - * Write these bytes to a file will give compatible format with other xgboost bindings. - * - * If java natively support HDFS file API, use toByteArray and write the ByteArray - * - * @param withStats Controls whether the split statistics are output. - * @return dumped model information - * @throws XGBoostError native error - */ - private String[] getDumpInfo(boolean withStats) throws XGBoostError { - int statsFlag = 0; - if (withStats) { - statsFlag = 1; - } - String[][] modelInfos = new String[1][]; - XGBoostJNI.checkCall(XGBoostJNI.XGBoosterDumpModelEx(handle, "", statsFlag, "text", - modelInfos)); - return modelInfos[0]; - } - /** * Save model into raw byte array. Currently it's using the deprecated format as * default, which will be changed into `ubj` in future releases.