Skip to content

Commit

Permalink
Updated JPMML-Python dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Jul 16, 2024
1 parent a974991 commit 0f22b38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public org.dmg.pmml.Model encodeModel(List<? extends Number> params, Schema sche
throw new IllegalArgumentException();
}

ModelEncoder encoder = (ModelEncoder)schema.getEncoder();

ModelEncoder encoder = schema.getEncoder();
OrdinalLabel ordinalLabel = (OrdinalLabel)schema.getLabel();
List<? extends Feature> features = schema.getFeatures();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -41,8 +41,7 @@ public RegressionModel(String module, String name){
public org.dmg.pmml.Model encodeModel(List<? extends Number> params, Schema schema){
Integer kConstant = getKConstant();

PMMLEncoder encoder = schema.getEncoder();

ModelEncoder encoder = schema.getEncoder();
Label label = schema.getLabel();
List<? extends Feature> features = schema.getFeatures();

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-evaluator-testing</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>

<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-python</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-python-testing</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</dependency>

<dependency>
Expand Down

0 comments on commit 0f22b38

Please sign in to comment.