java.lang.IllegalArgumentException: Can not make vectors of different length compatible!

JIRA | Spencer Aiello | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    from h2o stream: https://groups.google.com/forum/#!topic/h2ostream/ZrGos7sLgCE pFrames <- h2o.splitFrame(rawFrame, ratios = c(0.7, 0.15)) pFrames.train <- pFrames[[1]] pFrames.test <- pFrames[[2]] pFrames.val <- pFrames[[3]] model.1 <- h2o.glrm(pFrames.train, k = 2, validation_frame = pFrames.val, transform = "NORMALIZE", multi_loss = "Categorical", init = "Random", seed = 123456) |============== | 17% Got exception 'class java.lang.IllegalArgumentException', with msg 'Can not make vectors of different length compatible!' java.lang.IllegalArgumentException: Can not make vectors of different length compatible! at water.fvec.Frame.makeCompatible(Frame.java:1275) at water.fvec.Frame.bulkAdd(Frame.java:529) at water.fvec.Frame.add(Frame.java:514) at water.fvec.Frame.add(Frame.java:560) at hex.glrm.GLRMModel.scoreMetricsOnly(GLRMModel.java:615) at hex.glrm.GLRM$GLRMDriver.compute2(GLRM.java:711) at water.H2O$H2OCountedCompleter.compute(H2O.java:1069) 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) Erreur : 'Can not make vectors of different length compatible! h2o.clusterInfo() R is connected to the H2O cluster: H2O cluster uptime: 7 days 3 hours H2O cluster version: 3.7.0.3256 H2O cluster name: H2ODemo H2O cluster total nodes: 3 H2O cluster total memory: 71.91 GB H2O cluster total cores: 12 H2O cluster allowed cores: 12 H2O cluster healthy: TRUE

    JIRA | 1 year ago | Spencer Aiello
    java.lang.IllegalArgumentException: Can not make vectors of different length compatible!
  2. 0

    from h2o stream: https://groups.google.com/forum/#!topic/h2ostream/ZrGos7sLgCE pFrames <- h2o.splitFrame(rawFrame, ratios = c(0.7, 0.15)) pFrames.train <- pFrames[[1]] pFrames.test <- pFrames[[2]] pFrames.val <- pFrames[[3]] model.1 <- h2o.glrm(pFrames.train, k = 2, validation_frame = pFrames.val, transform = "NORMALIZE", multi_loss = "Categorical", init = "Random", seed = 123456) |============== | 17% Got exception 'class java.lang.IllegalArgumentException', with msg 'Can not make vectors of different length compatible!' java.lang.IllegalArgumentException: Can not make vectors of different length compatible! at water.fvec.Frame.makeCompatible(Frame.java:1275) at water.fvec.Frame.bulkAdd(Frame.java:529) at water.fvec.Frame.add(Frame.java:514) at water.fvec.Frame.add(Frame.java:560) at hex.glrm.GLRMModel.scoreMetricsOnly(GLRMModel.java:615) at hex.glrm.GLRM$GLRMDriver.compute2(GLRM.java:711) at water.H2O$H2OCountedCompleter.compute(H2O.java:1069) 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) Erreur : 'Can not make vectors of different length compatible! h2o.clusterInfo() R is connected to the H2O cluster: H2O cluster uptime: 7 days 3 hours H2O cluster version: 3.7.0.3256 H2O cluster name: H2ODemo H2O cluster total nodes: 3 H2O cluster total memory: 71.91 GB H2O cluster total cores: 12 H2O cluster allowed cores: 12 H2O cluster healthy: TRUE

    JIRA | 1 year ago | Spencer Aiello
    java.lang.IllegalArgumentException: Can not make vectors of different length compatible!
  3. 0

    GLRM Error: Can not make vectors of different length compatible

    Google Groups | 1 year ago | Unknown author
    java.lang.IllegalArgumentException: Can not make vectors of different length compatible!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am running into a lot of errors using a small, but wide dataset on an 8GB H2O cluster. I don't think memory should be a problem, but perhaps that's the issue, or perhaps it's something else. Three types of errors: {code} library(h2o) h2o.init(nthreads = -1, max_mem_size = "8G") file <- "http://www.stat.berkeley.edu/~ledell/data/rotterdam.csv.gz" df <- h2o.importFile(file) dim(df) # 286 22284 y <- "relapse" x <- setdiff(names(df), y) df[,y] <- as.factor(df[,y]) #Convert to factor (for binary classification) splits <- h2o.splitFrame(df, seed = 1) train <- splits[[1]] test <- splits[[2]] print(dim(train)) print(dim(test)) # Does not work: # Train a default PCA h2o_pca <- h2o.prcomp(train, k = 8, x = x) #Error: java.lang.IllegalArgumentException: Found validation errors: ERRR on field: _train: Gram matrices (one per thread) won't fit in the driver node's memory (59.19 GB > 6.93 GB) - try reducing the number of columns and/or the number of categorical factors. # Also kills the H2O cluster! # Try again with Power method instead, but this errors out and kills the cluster! # Train a PCA model using 20 principal components. h2o_pca20 <- h2o.prcomp(train, x = x, k = 20, transform = "STANDARDIZE", pca_method = "Power", use_all_factor_levels = TRUE, seed = 1) #ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/3/Jobs/$03017f00000132d4ffffffff$_813316ba1fc0d17fc26ffd94f7e24d85) #Error: lexical error: invalid char in json text. #<html> <head> <meta http-equiv= # (right here) ------^ #Train a PCA model using 20 principal components. h2o_pca20 <- h2o.prcomp(train, x = x, k = 20, transform = "STANDARDIZE", pca_method = "Randomized", use_all_factor_levels = TRUE, seed = 1) # java.lang.IllegalArgumentException: Can not make vectors of different length compatible! # # java.lang.IllegalArgumentException: Can not make vectors of different length compatible! # at water.fvec.Frame.makeCompatible(Frame.java:1391) # at water.fvec.Frame.makeCompatible(Frame.java:1379) # at water.fvec.Frame.bulkAdd(Frame.java:525) # at water.fvec.Frame.add(Frame.java:510) # at water.fvec.Frame.add(Frame.java:564) # at hex.svd.SVD$SVDDriver.randSubIter(SVD.java:210) # at hex.svd.SVD$SVDDriver.computeImpl(SVD.java:455) # at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:169) # at hex.ModelBuilder.trainModelNested(ModelBuilder.java:225) # at hex.pca.PCA$PCADriver.computeImpl(PCA.java:247) # at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:169) # at water.H2O$H2OCountedCompleter.compute(H2O.java:1206) # 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) # # Error: java.lang.IllegalArgumentException: Can not make vectors of different length compatible! {code} The only method that works here is GLRM: {code} h2o_pca20 <- h2o.prcomp(train, + x = x, k = 20, + transform = "STANDARDIZE", + pca_method = "GLRM", + use_all_factor_levels = TRUE, + seed = 1) |=======================================================================| 100% > {code}

    JIRA | 4 months ago | Erin LeDell
    java.lang.IllegalArgumentException: Can not make vectors of different length compatible!
  6. 0

    I have a feature name in my dataframe called "predict". Seems like predict is reserved. 12-Aug 08:11:43.648 127.0.0.1:54321 7032 FJ-0-7 ERRR WATER: + java.lang.IllegalArgumentException: Duplicate name 'predict' in Frame + at water.fvec.Frame.add(Frame.java:250) + at water.Model.scoreImpl(Model.java:266) + at water.Model.score(Model.java:243) + at hex.gbm.SharedTreeModelBuilder$Score.doIt(SharedTreeModelBuilder.java:756) + at hex.gbm.SharedTreeModelBuilder.doScoring(SharedTreeModelBuilder.java:322) + at hex.gbm.GBM.buildModel(GBM.java:282) + at hex.gbm.GBM.buildModel(GBM.java:26) + at hex.gbm.SharedTreeModelBuilder.buildModel(SharedTreeModelBuilder.java:276) + at hex.gbm.GBM.execImpl(GBM.java:200) + at water.Func.exec(Func.java:42) + at water.Job.invoke(Job.java:353) + at water.Job$ValidatedJob.genericCrossValidation(Job.java:889) + at hex.gbm.GBM.crossValidate(GBM.java:709) + at water.util.CrossValUtils.crossValidate(CrossValUtils.java:32) + at hex.gbm.GBM.execImpl(GBM.java:201) + at water.Func.exec(Func.java:42) + at water.Job$3.compute2(Job.java:333) + at water.H2O$H2OCountedCompleter.compute(H2O.java:633) + at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) + 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)

    JIRA | 3 years ago | niraj
    java.lang.IllegalArgumentException: Duplicate name 'predict' in Frame

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can not make vectors of different length compatible!

      at water.fvec.Frame.makeCompatible()
    2. water.fvec
      Frame.add
      1. water.fvec.Frame.makeCompatible(Frame.java:1275)
      2. water.fvec.Frame.bulkAdd(Frame.java:529)
      3. water.fvec.Frame.add(Frame.java:514)
      4. water.fvec.Frame.add(Frame.java:560)
      4 frames
    3. hex.glrm
      GLRM$GLRMDriver.compute2
      1. hex.glrm.GLRMModel.scoreMetricsOnly(GLRMModel.java:615)
      2. hex.glrm.GLRM$GLRMDriver.compute2(GLRM.java:711)
      2 frames
    4. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:1069)
      1 frame
    5. jsr166y
      ForkJoinWorkerThread.run
      1. jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
      2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
      3. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
      4. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
      5. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      5 frames