Skip to content

Commit

Permalink
fixing issues in multinode + client mode (still issues with automl re…
Browse files Browse the repository at this point in the history
…moval)
  • Loading branch information
Sebastien Poirier committed Oct 3, 2019
1 parent 22d3078 commit 8a9a9f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions h2o-automl/src/main/java/ai/h2o/automl/AutoML.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public static AutoML startAutoML(AutoMLBuildSpec buildSpec) {
lastStartTime = startTime;
}

// TODO: problems:
// if same project_name but change validation_frame or leaderboard_frame, then the existing models from previous run are scored with a different metric.
// - for change of leaderboard_frame, this is currently handled in Leaderboard.getOrMake
// - where to handle change of validation_frame
// - unfortunately, this can't be handled on client side

// if user offers a different response column,
// the new models will be added to a new Leaderboard, without removing the previous one.
// otherwise, the new models will be added to the existing leaderboard.
Expand Down
2 changes: 1 addition & 1 deletion h2o-automl/src/main/java/ai/h2o/automl/Leaderboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Leaderboard extends Lockable<Leaderboard> {
* <p>
* Updated inside addModels().
*/
private final transient IcedHashMap<Key<ModelMetrics>, ModelMetrics> _leaderboard_model_metrics_cache = new IcedHashMap<>();
private final IcedHashMap<Key<ModelMetrics>, ModelMetrics> _leaderboard_model_metrics_cache = new IcedHashMap<>();

/**
* Map providing for a given metric name, the list of metric values in the same order as the models
Expand Down
10 changes: 5 additions & 5 deletions h2o-r/tests/testdir_algos/automl/runit_automl_memory_cleanup.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ automl.cleanup.suite <- function() {
test_remove_automl_instance <- function() {
ds <- import_dataset()
aml <- h2o.automl(project_name="test_remove_R_automl_instance",
x=ds$x, y=ds$y,
training_frame=ds$train,
validation_frame=ds$valid,
leaderboard_frame=ds$test,
max_models=max_models)
x=ds$x, y=ds$y,
training_frame=ds$train,
validation_frame=ds$valid,
leaderboard_frame=ds$test,
max_models=max_models)

keys <- h2o.ls()$key
expect_gt(length(grep("_AutoML_", keys)), nrow(aml@leaderboard))
Expand Down

0 comments on commit 8a9a9f4

Please sign in to comment.