From 814c847db017d00d9b569944468e404432a0aa3e Mon Sep 17 00:00:00 2001 From: Adam Valenta Date: Thu, 14 Sep 2023 18:58:16 +0200 Subject: [PATCH] Implement possibility to have a custom weights column and ensure that the created weights collumn will always be the one we use --- .../src/main/java/hex/adaboost/AdaBoost.java | 35 +++-- .../test/java/hex/adaboost/AdaBoostTest.java | 123 +++++++++++++++++- 2 files changed, 145 insertions(+), 13 deletions(-) diff --git a/h2o-algos/src/main/java/hex/adaboost/AdaBoost.java b/h2o-algos/src/main/java/hex/adaboost/AdaBoost.java index e61b98400faf..b1a41c6d843b 100644 --- a/h2o-algos/src/main/java/hex/adaboost/AdaBoost.java +++ b/h2o-algos/src/main/java/hex/adaboost/AdaBoost.java @@ -7,7 +7,6 @@ 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; @@ -27,6 +26,7 @@ public class AdaBoost extends ModelBuilder