diff --git a/pmml-sparkml-xgboost/src/main/java/org/jpmml/sparkml/xgboost/BoosterUtil.java b/pmml-sparkml-xgboost/src/main/java/org/jpmml/sparkml/xgboost/BoosterUtil.java index e713231..5d966a0 100644 --- a/pmml-sparkml-xgboost/src/main/java/org/jpmml/sparkml/xgboost/BoosterUtil.java +++ b/pmml-sparkml-xgboost/src/main/java/org/jpmml/sparkml/xgboost/BoosterUtil.java @@ -69,16 +69,13 @@ public & HasPredictionCol & GeneralParams, C extends ModelCo Map options = new LinkedHashMap<>(); options.put(HasXGBoostOptions.OPTION_MISSING, converter.getOption(HasXGBoostOptions.OPTION_MISSING, missing)); options.put(HasXGBoostOptions.OPTION_COMPACT, converter.getOption(HasXGBoostOptions.OPTION_COMPACT, false)); + options.put(HasXGBoostOptions.OPTION_INPUT_FLOAT, converter.getOption(HasXGBoostOptions.OPTION_INPUT_FLOAT, null)); options.put(HasXGBoostOptions.OPTION_NUMERIC, converter.getOption(HasXGBoostOptions.OPTION_NUMERIC, true)); options.put(HasXGBoostOptions.OPTION_PRUNE, converter.getOption(HasXGBoostOptions.OPTION_PRUNE, false)); options.put(HasXGBoostOptions.OPTION_NTREE_LIMIT, converter.getOption(HasXGBoostOptions.OPTION_NTREE_LIMIT, null)); - Schema xgbSchema = learner.configureSchema(options, schema); + Schema xgbSchema = learner.toXGBoostSchema(schema); - MiningModel miningModel = learner.encodeModel(options, xgbSchema); - - miningModel = learner.configureModel(options, miningModel); - - return miningModel; + return learner.encodeModel(options, xgbSchema); } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2e0ecb3..ed94e51 100644 --- a/pom.xml +++ b/pom.xml @@ -113,7 +113,7 @@ org.jpmml pmml-xgboost - 1.8.4 + 1.8.5