Uploaded image for project: 'Public H2O 3'
  1. Public H2O 3
  2. PUBDEV-3934

Overwriting a Stacked Ensemble model with same model_id produces error

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: R, StackedEnsemble
    • Labels:
      None
    • CustomerVisible:
      No

      Description

      If you run the same `h2o.stackedEnsemble` code twice (with the same model_id), it will produce an error. The standard functionality for other H2O algos is that the model will simply be overwritten by the new one, using the same model_id.

      > stack <- h2o.stackedEnsemble(x = x, 
      +                                y = y, 
      +                                training_frame = train,
      +                                validation_frame = test,  #also test that validation_frame is working
      +                                model_id = "my_ensemble_gaussian", 
      +                                selection_strategy = "choose_all",
      +                                base_models = list(my_gbm@model_id, my_rf@model_id))
        |                                                                           |   0%
      
      java.lang.AssertionError:  null vec: $04ff5c000000ffffffff$_8ba4d1bb8214b311b5c1d27fb9164853
      
      java.lang.AssertionError:  null vec: $04ff5c000000ffffffff$_8ba4d1bb8214b311b5c1d27fb9164853
          at water.fvec.Frame.<init>(Frame.java:112)
          at hex.ModelBuilder.init(ModelBuilder.java:791)
          at hex.glm.GLM.init(GLM.java:349)
          at hex.ensemble.StackedEnsemble$StackedEnsembleDriver.computeImpl(StackedEnsemble.java:120)
          at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:169)
          at water.H2O$H2OCountedCompleter.compute(H2O.java:1217)
          at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
          at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
          at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
          at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
          at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      
       Show Traceback
       
       Rerun with Debug
       Error: java.lang.AssertionError:  null vec: $04ff5c000000ffffffff$_8ba4d1bb8214b311b5c1d27fb9164853 
      
      

        Attachments

          Activity

            People

            • Assignee:
              rpeck Raymond Peck
              Reporter:
              erin Erin LeDell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support