diff --git a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Classification.java b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Classification.java index dd4f2af..5ba917b 100644 --- a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Classification.java +++ b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Classification.java @@ -26,7 +26,7 @@ import org.jpmml.converter.CategoricalLabel; import org.jpmml.converter.Label; import org.jpmml.converter.LabelUtil; -import org.jpmml.converter.PMMLEncoder; +import org.jpmml.converter.ModelEncoder; abstract public class Classification extends ObjectiveFunction { @@ -41,7 +41,7 @@ public Classification(Section config){ } @Override - public Label encodeLabel(String targetName, List targetCategories, PMMLEncoder encoder){ + public Label encodeLabel(String targetName, List targetCategories, ModelEncoder encoder){ DataField dataField; if(targetCategories == null){ diff --git a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/ObjectiveFunction.java b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/ObjectiveFunction.java index 0039f26..be4259f 100644 --- a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/ObjectiveFunction.java +++ b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/ObjectiveFunction.java @@ -27,8 +27,8 @@ import org.dmg.pmml.tree.TreeModel; import org.jpmml.converter.ContinuousLabel; import org.jpmml.converter.Label; +import org.jpmml.converter.ModelEncoder; import org.jpmml.converter.ModelUtil; -import org.jpmml.converter.PMMLEncoder; import org.jpmml.converter.PredicateManager; import org.jpmml.converter.Schema; import org.jpmml.converter.mining.MiningModelUtil; @@ -47,7 +47,7 @@ public ObjectiveFunction(Section config){ } abstract - public Label encodeLabel(String targetName, List targetCategories, PMMLEncoder encoder); + public Label encodeLabel(String targetName, List targetCategories, ModelEncoder encoder); abstract public MiningModel encodeModel(List trees, Integer numIteration, Schema schema); diff --git a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Regression.java b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Regression.java index a7841ab..8c22b08 100644 --- a/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Regression.java +++ b/pmml-lightgbm/src/main/java/org/jpmml/lightgbm/Regression.java @@ -26,7 +26,7 @@ import org.dmg.pmml.mining.MiningModel; import org.jpmml.converter.ContinuousLabel; import org.jpmml.converter.Label; -import org.jpmml.converter.PMMLEncoder; +import org.jpmml.converter.ModelEncoder; import org.jpmml.converter.Schema; public class Regression extends ObjectiveFunction { @@ -36,7 +36,7 @@ public Regression(Section config){ } @Override - public Label encodeLabel(String targetName, List targetCategories, PMMLEncoder encoder){ + public Label encodeLabel(String targetName, List targetCategories, ModelEncoder encoder){ if(targetCategories != null && targetCategories.size() > 0){ throw new IllegalArgumentException("Regression requires zero target categories");