java.lang.IllegalArgumentException: _nbins must be in [2, 100].

JIRA | Michal Malohlava | 1 month 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

    If i specified invalid parameters, the Partial Dependency call fails silently, but backend has a proper error: {noformat} 2-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 INFO: Selecting the top 10 features from the model's variable importances 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: java.lang.IllegalArgumentException: _nbins must be in [2, 100]. 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at hex.PartialDependence.checkSanityAndFillParams(PartialDependence.java:62) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at hex.PartialDependence.execImpl(PartialDependence.java:31) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at water.api.ModelsHandler.makePartialDependence(ModelsHandler.java:175) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at java.lang.reflect.Method.invoke(Method.java:606) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at water.api.Handler.handle(Handler.java:61) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at water.api.RequestServer.serve(RequestServer.java:434) 02-09 15:52:36.876 172.16.2.223:54321 53846 #37873-17 ERRR: at water.api.RequestServer.doGeneric(RequestServer.java:285) {noformat}

    JIRA | 1 month ago | Michal Malohlava
    java.lang.IllegalArgumentException: _nbins must be in [2, 100].
  2. 0
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h2o dev version: http://s3.amazonaws.com/h2o-release/h2o-dev/rel-severi/4/index.html 04-13 13:01:01.727 172.16.2.31:54321 1825 # Session INFO: Method: POST , URI: /3/Rapids, route: /3/Rapids, parms: {ast=(= !py2b965f2b-d3bf-4ce9-96f9-ca545323b8bc (quantile '$04ff07000000ffffffff6439cf93477a3da9d2412135f03f9d16$' (dlist #0.01 #0.1 #0.25 #0.333 #0.5 #0.667 #0.75 #0.9 #0.99) ))} 04-13 13:01:01.729 172.16.2.31:54321 1825 # Session ERRR: java.lang.NullPointerException 04-13 13:01:01.730 172.16.2.31:54321 1825 # Session WARN: Caught exception: java.lang.NullPointerException; Stacktrace: [water.api.RapidsHandler.exec(RapidsHandler.java:110), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:57), water.api.RequestServer.handle(RequestServer.java:665), water.api.RequestServer.serve(RequestServer.java:601), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433), java.lang.Thread.run(Thread.java:744)] java.lang.NullPointerException at hex.quantile.Quantile.trainModel(Quantile.java:30) at water.rapids.ASTQtile.apply(ASTOp.java:2369) at water.rapids.AST.treeWalk(AST.java:47) at water.rapids.AST.treeWalk(AST.java:81) at water.rapids.Exec.exec(Exec.java:68) at water.api.RapidsHandler.exec(RapidsHandler.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:57) at water.api.RequestServer.handle(RequestServer.java:665) at water.api.RequestServer.serve(RequestServer.java:601) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433) at java.lang.Thread.run(Thread.java:744)

    JIRA | 2 years ago | Tom Kraljevic
    java.lang.NullPointerException
  6. 0

    h2o dev version: http://s3.amazonaws.com/h2o-release/h2o-dev/rel-severi/4/index.html 04-13 13:01:01.727 172.16.2.31:54321 1825 # Session INFO: Method: POST , URI: /3/Rapids, route: /3/Rapids, parms: {ast=(= !py2b965f2b-d3bf-4ce9-96f9-ca545323b8bc (quantile '$04ff07000000ffffffff6439cf93477a3da9d2412135f03f9d16$' (dlist #0.01 #0.1 #0.25 #0.333 #0.5 #0.667 #0.75 #0.9 #0.99) ))} 04-13 13:01:01.729 172.16.2.31:54321 1825 # Session ERRR: java.lang.NullPointerException 04-13 13:01:01.730 172.16.2.31:54321 1825 # Session WARN: Caught exception: java.lang.NullPointerException; Stacktrace: [water.api.RapidsHandler.exec(RapidsHandler.java:110), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:57), water.api.RequestServer.handle(RequestServer.java:665), water.api.RequestServer.serve(RequestServer.java:601), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433), java.lang.Thread.run(Thread.java:744)] java.lang.NullPointerException at hex.quantile.Quantile.trainModel(Quantile.java:30) at water.rapids.ASTQtile.apply(ASTOp.java:2369) at water.rapids.AST.treeWalk(AST.java:47) at water.rapids.AST.treeWalk(AST.java:81) at water.rapids.Exec.exec(Exec.java:68) at water.api.RapidsHandler.exec(RapidsHandler.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:57) at water.api.RequestServer.handle(RequestServer.java:665) at water.api.RequestServer.serve(RequestServer.java:601) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433) at java.lang.Thread.run(Thread.java:744)

    JIRA | 2 years ago | Tom Kraljevic
    java.lang.NullPointerException

    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

      _nbins must be in [2, 100].

      at hex.PartialDependence.checkSanityAndFillParams()
    2. hex
      PartialDependence.execImpl
      1. hex.PartialDependence.checkSanityAndFillParams(PartialDependence.java:62)
      2. hex.PartialDependence.execImpl(PartialDependence.java:31)
      2 frames
    3. water.api
      ModelsHandler.makePartialDependence
      1. water.api.ModelsHandler.makePartialDependence(ModelsHandler.java:175)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. water.api
      RequestServer.doGeneric
      1. water.api.Handler.handle(Handler.java:61)
      2. water.api.RequestServer.serve(RequestServer.java:434)
      3. water.api.RequestServer.doGeneric(RequestServer.java:285)
      3 frames