hex.gram.Gram$NonSPDMatrixException

JIRA | Nidhi Mehta | 12 months ago
  1. 0

    upload attached data run {code:java} buildModel 'glm', {"model_id":"glm-d4292a9b-fff6-4de7-b065-e52225fc056f","training_frame":"Key_Frame__insurance.hex","nfolds":0,"response_column":"Claim Numbers","ignored_columns":[],"ignore_const_cols":true,"family":"tweedie","tweedie_variance_power":"1.2","tweedie_link_power":"0","solver":"IRLSM","alpha":[],"lambda":[0],"lambda_search":false,"nlambdas":100,"standardize":true,"non_negative":false,"fold_assignment":"AUTO","score_each_iteration":false,"compute_p_values":true,"remove_colinear_columns":true,"max_iterations":-1,"link":"family_default","balance_classes":false,"max_confusion_matrix_size":20,"max_hit_ratio_k":10,"keep_cross_validation_predictions":false,"intercept":true,"objective_epsilon":0.000001,"beta_epsilon":0.0001,"gradient_epsilon":0.0001,"prior":-1,"lambda_min_ratio":-1,"max_active_predictors":-1,"class_sampling_factors":[],"max_after_balance_size":5} {code} no p value gets reported Also if you run the same dataset with {code:java} buildModel 'glm', {"model_id":"glm-d4292a9b-fff6-4de7-b065-e52225fc056f","training_frame":"Key_Frame__insurance.hex","nfolds":0,"response_column":"Claim Numbers","ignored_columns":[],"ignore_const_cols":true,"family":"tweedie","tweedie_variance_power":"1.6","tweedie_link_power":"0","solver":"IRLSM","alpha":[],"lambda":[0],"lambda_search":false,"nlambdas":100,"standardize":true,"non_negative":false,"fold_assignment":"AUTO","score_each_iteration":false,"compute_p_values":true,"remove_colinear_columns":true,"max_iterations":-1,"link":"family_default","balance_classes":false,"max_confusion_matrix_size":20,"max_hit_ratio_k":10,"keep_cross_validation_predictions":false,"intercept":true,"objective_epsilon":0.000001,"beta_epsilon":0.0001,"gradient_epsilon":0.0001,"prior":-1,"lambda_min_ratio":-1,"max_active_predictors":-1,"class_sampling_factors":[],"max_after_balance_size":5} {code} get - {code:java} Got exception 'class hex.gram.Gram$NonSPDMatrixException', with msg 'null' hex.gram.Gram$NonSPDMatrixException at hex.gram.Gram$Cholesky.solve(Gram.java:910) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:2041) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1950) at water.H2O$H2OCallback.onCompletion(H2O.java:1116) at jsr166y.CountedCompleter.__tryComplete(CountedCompleter.java:425) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:383) at water.MRTask.compute2(MRTask.java:689) at water.H2O$H2OCountedCompleter.compute1(H2O.java:1060) at hex.glm.GLMTask$GLMIterationTask$Icer.compute1(GLMTask$GLMIterationTask$Icer.java) at water.H2O$H2OCountedCompleter.compute(H2O.java:1056) 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) {code}

    JIRA | 12 months ago | Nidhi Mehta
    hex.gram.Gram$NonSPDMatrixException
  2. 0

    Params: data: cars.hex <- h2o.uploadFile(conn, locate("smalldata/junit/cars.csv")) cars.hex[,3] <- as.factor(cars.hex[,3]) c.sid <- h2o.runif(cars.hex) cars.train <- h2o.assign(cars.hex[c.sid > .2, ], "cars.train") cars.test <- h2o.assign(cars.hex[c.sid <= .2, ], "cars.test") [2015-05-14 17:33:08] [INFO]: x: 3, 4, 5, 6, 7 [2015-05-14 17:33:08] [INFO]: y: 2 [2015-05-14 17:33:08] [INFO]: Using training_frame: cars.train [2015-05-14 17:33:08] [INFO]: validation_frame: cars.test [2015-05-14 17:33:08] [INFO]: family: gamma [2015-05-14 17:33:08] [INFO]: max iterations: 23 [2015-05-14 17:33:08] [INFO]: beta epsilon: DEFAULT [2015-05-14 17:33:08] [INFO]: solver: DEFAULT [2015-05-14 17:33:08] [INFO]: standardize: DEFAULT [2015-05-14 17:33:08] [INFO]: link: log [2015-05-14 17:33:08] [INFO]: alpha: DEFAULT [2015-05-14 17:33:08] [INFO]: prior: 0.584834245033562 [2015-05-14 17:33:08] [INFO]: lambda search: TRUE [2015-05-14 17:33:08] [INFO]: nlambdas: DEFAULT [2015-05-14 17:33:08] [INFO]: beta constraints: DEFAULT stacktrace: Got exception 'class hex.gram.Gram$NonSPDMatrixException', with msg 'null' hex.gram.Gram$NonSPDMatrixException at hex.glm.GLM$GramSolver.computeCholesky(GLM.java:1363) at hex.glm.GLM$GramSolver.<init>(GLM.java:1336) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1115) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1061) at water.H2O$H2OCallback.onCompletion(H2O.java:724) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.RPC$2.compute2(RPC.java:593) at water.H2O$H2OCountedCompleter.compute(H2O.java:666) 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 | 2 years ago | Sebastian Vidrio
    hex.gram.Gram$NonSPDMatrixException
  3. 0

    Params: data: cars.hex <- h2o.uploadFile(conn, locate("smalldata/junit/cars.csv")) cars.hex[,3] <- as.factor(cars.hex[,3]) c.sid <- h2o.runif(cars.hex) cars.train <- h2o.assign(cars.hex[c.sid > .2, ], "cars.train") cars.test <- h2o.assign(cars.hex[c.sid <= .2, ], "cars.test") [2015-05-14 17:33:08] [INFO]: x: 3, 4, 5, 6, 7 [2015-05-14 17:33:08] [INFO]: y: 2 [2015-05-14 17:33:08] [INFO]: Using training_frame: cars.train [2015-05-14 17:33:08] [INFO]: validation_frame: cars.test [2015-05-14 17:33:08] [INFO]: family: gamma [2015-05-14 17:33:08] [INFO]: max iterations: 23 [2015-05-14 17:33:08] [INFO]: beta epsilon: DEFAULT [2015-05-14 17:33:08] [INFO]: solver: DEFAULT [2015-05-14 17:33:08] [INFO]: standardize: DEFAULT [2015-05-14 17:33:08] [INFO]: link: log [2015-05-14 17:33:08] [INFO]: alpha: DEFAULT [2015-05-14 17:33:08] [INFO]: prior: 0.584834245033562 [2015-05-14 17:33:08] [INFO]: lambda search: TRUE [2015-05-14 17:33:08] [INFO]: nlambdas: DEFAULT [2015-05-14 17:33:08] [INFO]: beta constraints: DEFAULT stacktrace: Got exception 'class hex.gram.Gram$NonSPDMatrixException', with msg 'null' hex.gram.Gram$NonSPDMatrixException at hex.glm.GLM$GramSolver.computeCholesky(GLM.java:1363) at hex.glm.GLM$GramSolver.<init>(GLM.java:1336) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1115) at hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1061) at water.H2O$H2OCallback.onCompletion(H2O.java:724) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.RPC$2.compute2(RPC.java:593) at water.H2O$H2OCountedCompleter.compute(H2O.java:666) 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 | 2 years ago | Sebastian Vidrio
    hex.gram.Gram$NonSPDMatrixException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hex.gram.Gram$NonSPDMatrixException

      No message provided

      at hex.gram.Gram$Cholesky.solve()
    2. hex.gram
      Gram$Cholesky.solve
      1. hex.gram.Gram$Cholesky.solve(Gram.java:910)
      1 frame
    3. hex.glm
      GLM$GLMSingleLambdaTsk$Iteration.callback
      1. hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:2041)
      2. hex.glm.GLM$GLMSingleLambdaTsk$Iteration.callback(GLM.java:1950)
      2 frames
    4. water
      H2O$H2OCallback.onCompletion
      1. water.H2O$H2OCallback.onCompletion(H2O.java:1116)
      1 frame
    5. jsr166y
      CountedCompleter.tryComplete
      1. jsr166y.CountedCompleter.__tryComplete(CountedCompleter.java:425)
      2. jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:383)
      2 frames
    6. water
      H2O$H2OCountedCompleter.compute1
      1. water.MRTask.compute2(MRTask.java:689)
      2. water.H2O$H2OCountedCompleter.compute1(H2O.java:1060)
      2 frames
    7. hex.glm
      GLMTask$GLMIterationTask$Icer.compute1
      1. hex.glm.GLMTask$GLMIterationTask$Icer.compute1(GLMTask$GLMIterationTask$Icer.java)
      1 frame
    8. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:1056)
      1 frame
    9. 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