Skip to content

Commit

Permalink
Fix tests related to new adaboost API
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Sep 8, 2023
1 parent 7908349 commit f03c3b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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 @@ -23,7 +23,7 @@ public ModelMetrics.MetricBuilder makeMetricBuilder(String[] domain) {
if (_output.getModelCategory() == ModelCategory.Binomial) {
return new ModelMetricsBinomial.MetricBuilderBinomial(domain);
}
throw H2O.unimpl();
throw H2O.unimpl("AdaBoost currently support only binary classification");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def make_tests(classifier):
'H2OWord2vecEstimator', # needs a separate test (requires pre_trained model as parameter)
'H2OUpliftRandomForestEstimator', # generic part is not implemented yet
'H2ODecisionTreeEstimator', # generic part is not implemented yet
'H2OAdaBoostEstimator', # generic part is not implemented yet or test needs to be adjusted just for classification
]
estimators = [cls for name, cls in inspect.getmembers(h2o.sklearn, inspect.isclass)
if name.endswith('Estimator') and name not in ['H2OAutoMLEstimator'] + failing]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def make_tests(classifier):
'H2OStackedEnsembleRegressor', # needs a separate test (requires models as parameters),
'H2OUpliftRandomForestRegressor', # does not support regression yet
'H2ODecisionTreeRegressor' # does not support regression yet
'H2OAdaBoostRegressor' # does not support regression yet
]
regressors = [cls for name, cls in inspect.getmembers(h2o.sklearn, inspect.isclass)
if name.endswith('Regressor') and name not in ['H2OAutoMLRegressor']+failing]
Expand Down

0 comments on commit f03c3b9

Please sign in to comment.