Skip to content

Commit

Permalink
fix java api
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Sep 13, 2023
1 parent 784f824 commit df188df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions h2o-algos/src/main/java/hex/adaboost/AdaBoost.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import hex.glm.GLMModel;
import hex.tree.drf.DRF;
import hex.tree.drf.DRFModel;
import hex.tree.dt.DTModel;
import org.apache.log4j.Logger;
import water.*;
import water.exceptions.H2OModelBuilderIllegalArgumentException;
Expand All @@ -33,6 +34,20 @@ public AdaBoost(AdaBoostModel.AdaBoostParameters parms) {
init(false);
}

public AdaBoost(boolean startup_once) {
super(new AdaBoostModel.AdaBoostParameters(), startup_once);
}

@Override
public boolean havePojo() {
return false;
}

@Override
public boolean haveMojo() {
return false;
}

@Override
public void init(boolean expensive) {
super.init(expensive);
Expand Down
2 changes: 1 addition & 1 deletion h2o-algos/src/main/java/hex/adaboost/AdaBoostModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static class AdaBoostParameters extends Model.Parameters {
/**
* TODO valenad1
*/
public long _n_estimators;
public int _n_estimators;

/**
* TODO valenad1
Expand Down

0 comments on commit df188df

Please sign in to comment.