h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.9k stars 2k forks source link

Prediction NFE #13312

Closed exalate-issue-sync[bot] closed 1 year ago

exalate-issue-sync[bot] commented 1 year ago

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)"]}

exalate-issue-sync[bot] commented 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.

exalate-issue-sync[bot] commented 1 year ago

Former user commented: I think this is related to PUBDEV-349, since it looks like the NA's are being parsed into Strings.

exalate-issue-sync[bot] commented 1 year ago

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.

hasithjp commented 1 year ago

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