Skip to content

Commit

Permalink
Updated JPMML-Converter dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed May 14, 2019
1 parent 8e76ab6 commit fd8626a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>jpmml-converter</artifactId>
<version>1.3.6</version>
<version>1.3.7</version>
</dependency>

<dependency>
<groupId>org.jpmml</groupId>
<artifactId>jpmml-xgboost</artifactId>
<version>1.3.6</version>
<version>1.3.8</version>
</dependency>

<dependency>
Expand All @@ -91,13 +91,13 @@
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-evaluator</artifactId>
<version>1.4.8</version>
<version>1.4.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-evaluator-test</artifactId>
<version>1.4.8</version>
<version>1.4.9</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jpmml/h2o/GbmMojoModelConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public MiningModel encodeModel(Schema schema){

MiningModel miningModel = new MiningModel(MiningFunction.REGRESSION, ModelUtil.createMiningSchema(continuousLabel))
.setSegmentation(MiningModelUtil.createSegmentation(MultipleModelMethod.SUM, treeModels))
.setTargets(ModelUtil.createRescaleTargets(null, (double)model._init_f, continuousLabel));
.setTargets(ModelUtil.createRescaleTargets(null, model._init_f, continuousLabel));

return miningModel;
} else
Expand All @@ -85,7 +85,7 @@ public MiningModel encodeModel(Schema schema){

MiningModel miningModel = new MiningModel(MiningFunction.REGRESSION, ModelUtil.createMiningSchema(continuousLabel))
.setSegmentation(MiningModelUtil.createSegmentation(MultipleModelMethod.SUM, treeModels))
.setTargets(ModelUtil.createRescaleTargets(null, (double)model._init_f, continuousLabel))
.setTargets(ModelUtil.createRescaleTargets(null, model._init_f, continuousLabel))
.setOutput(ModelUtil.createPredictedOutput(FieldName.create("gbmValue"), OpType.CONTINUOUS, DataType.DOUBLE));

return MiningModelUtil.createRegression(miningModel, RegressionModel.NormalizationMethod.EXP, schema);
Expand All @@ -96,7 +96,7 @@ public MiningModel encodeModel(Schema schema){

MiningModel miningModel = new MiningModel(MiningFunction.REGRESSION, ModelUtil.createMiningSchema(continuousLabel))
.setSegmentation(MiningModelUtil.createSegmentation(Segmentation.MultipleModelMethod.SUM, treeModels))
.setTargets(ModelUtil.createRescaleTargets(null, (double)model._init_f, continuousLabel))
.setTargets(ModelUtil.createRescaleTargets(null, model._init_f, continuousLabel))
.setOutput(ModelUtil.createPredictedOutput(FieldName.create("gbmValue"), OpType.CONTINUOUS, DataType.DOUBLE));

return MiningModelUtil.createBinaryLogisticClassification(miningModel, 1d, 0d, RegressionModel.NormalizationMethod.LOGIT, true, schema);
Expand Down

0 comments on commit fd8626a

Please sign in to comment.