hex.gram.Gram$NonSPDMatrixException

JIRA | Nidhi Mehta | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 1 year ago | Nidhi Mehta
    hex.gram.Gram$NonSPDMatrixException

    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