From 0f22b38bf837a59910ca83e89be470e835916dcd Mon Sep 17 00:00:00 2001 From: Villu Ruusmann Date: Tue, 16 Jul 2024 12:22:27 +0300 Subject: [PATCH] Updated JPMML-Python dependency --- .../src/main/java/statsmodels/miscmodels/OrderedModel.java | 3 +-- .../main/java/statsmodels/regression/RegressionModel.java | 5 ++--- pom.xml | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pmml-statsmodels/src/main/java/statsmodels/miscmodels/OrderedModel.java b/pmml-statsmodels/src/main/java/statsmodels/miscmodels/OrderedModel.java index 88ff41b..81f4704 100644 --- a/pmml-statsmodels/src/main/java/statsmodels/miscmodels/OrderedModel.java +++ b/pmml-statsmodels/src/main/java/statsmodels/miscmodels/OrderedModel.java @@ -62,8 +62,7 @@ public org.dmg.pmml.Model encodeModel(List params, Schema sche throw new IllegalArgumentException(); } - ModelEncoder encoder = (ModelEncoder)schema.getEncoder(); - + ModelEncoder encoder = schema.getEncoder(); OrdinalLabel ordinalLabel = (OrdinalLabel)schema.getLabel(); List features = schema.getFeatures(); diff --git a/pmml-statsmodels/src/main/java/statsmodels/regression/RegressionModel.java b/pmml-statsmodels/src/main/java/statsmodels/regression/RegressionModel.java index 7964085..deb69d2 100644 --- a/pmml-statsmodels/src/main/java/statsmodels/regression/RegressionModel.java +++ b/pmml-statsmodels/src/main/java/statsmodels/regression/RegressionModel.java @@ -23,7 +23,7 @@ import org.jpmml.converter.Feature; import org.jpmml.converter.Label; -import org.jpmml.converter.PMMLEncoder; +import org.jpmml.converter.ModelEncoder; import org.jpmml.converter.Schema; import statsmodels.Model; @@ -41,8 +41,7 @@ public RegressionModel(String module, String name){ public org.dmg.pmml.Model encodeModel(List params, Schema schema){ Integer kConstant = getKConstant(); - PMMLEncoder encoder = schema.getEncoder(); - + ModelEncoder encoder = schema.getEncoder(); Label label = schema.getLabel(); List features = schema.getFeatures(); diff --git a/pom.xml b/pom.xml index a39f513..996210d 100644 --- a/pom.xml +++ b/pom.xml @@ -68,18 +68,18 @@ org.jpmml pmml-evaluator-testing - 1.6.4 + 1.6.5 org.jpmml pmml-python - 1.2.2 + 1.2.4 org.jpmml pmml-python-testing - 1.2.2 + 1.2.4