Closed exalate-issue-sync[bot] closed 1 year ago
Former user commented: Which dataset is this? I don't see this in smalldata or bigdata in H2O public test data folder.
Former user commented: I think this is related to PUBDEV-349, since it looks like the NA's are being parsed into Strings.
Former user commented: I'm unable to reproduce this error. I don't know what input parameters you used to build the GBM model, I used TARGET_B as my response and kept everything as default, the model build and prediction (on training set) work perfectly.
JIRA Issue Migration Info
Jira Issue: PUBDEV-308 Assignee: Yan Zou Reporter: Yan Zou State: Closed Fix Version: N/A Attachments: N/A Development PRs: N/A
Calling predict on KDDCup98VAL_z.csv (GBM) throws the attached NFE.
predict "gbm_1", "cup98VAL_z.hex"
{"__meta":{"schema_version":1,"schema_name":"H2OErrorV1","schema_type":"H2OError"},"timestamp":1422483292772,"error_url":"/3/Predictions.json/models/gbm_1/frames/cup98VAL_z.hex","msg":"For input string: \"NA\"","dev_msg":"For input string: \"NA\"","http_status":400,"values":{},"exception_type":"java.lang.NumberFormatException","exception_msg":"For input string: \"NA\"","stacktrace":["java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)","java.lang.Integer.parseInt(Integer.java:492)","java.lang.Integer.valueOf(Integer.java:582)","water.fvec.EnumWrappedVec.computeMap(EnumWrappedVec.java:78)","water.fvec.EnumWrappedVec.(EnumWrappedVec.java:33)","water.fvec.Vec.adaptTo(Vec.java:906)","hex.Model.adaptTestForTrain(Model.java:295)","hex.Model.adaptTestForTrain(Model.java:261)","hex.Model.score(Model.java:332)","water.api.ModelMetricsHandler.predict(ModelMetricsHandler.java:166)","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:66)","water.api.RequestServer.handle(RequestServer.java:573)","water.api.RequestServer.serve(RequestServer.java:529)","water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:434)","java.lang.Thread.run(Thread.java:745)"]}