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

GBM : Build GBM Model => Too many levels in response column! (java.lang.IllegalArgumentException) => Should display proper error message #13690

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

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

Steps to reproduce :

Dataset website : http://www.sigkdd.org/kdd-cup-2009-customer-relationship-prediction

1) h2o started locally 2) Import files from local for test and train : also copied to hdfs://mr-0xd6/datasets/KDD_Orange_Small

importFiles [ "/Users/nmadabhushi/Downloads/datasets/orange_small_train/orange_small_train.data","/Users/nmadabhushi/Downloads/datasets/orange_small_train/orange_small_train.data.cksum" ]

importFiles [ "/Users/nmadabhushi/Downloads/datasets/KDD/KDDOrange/orange_small_test/orange_small_test.data","/Users/nmadabhushi/Downloads/datasets/KDD/KDDOrange/orange_small_test/orange_small_test.data.cksum" ]

2) Parse data 3) Try to build GBM Model with train and validation against test(train and test data are provided on KDD website for orange)

: gives error below

Error calling POST /3/ModelBuilders.json/gbm/parameters with opts {"destination_key":"gbm-e6ef9443-34c5-4f1d-9e7b-31ab28e9d8fb","training_frame":"orange_small_train.hex","validation_frame":"orange_small_test.hex","dropNA20Cols":true,"response_column":"Var222","ntrees":50,"max_depth":5,"min_rows":10,"nbins":20,"learn_rate":0.1,"loss":"gaussian","balance_classes":false,"class_sampling_factors":null,"max_after_balance_size":5,"seed":0}

Too many levels in response column!

TOGGLE STACK TRACE Too many levels in response column! (java.lang.IllegalArgumentException) hex.tree.SharedTree.init(SharedTree.java:48) hex.tree.gbm.GBM.init(GBM.java:49) hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:104) hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:20) water.api.Schema.createAndFillImpl(Schema.java:323) water.api.ModelBuilderHandler.do_validate_parameters(ModelBuilderHandler.java:38) hex.api.GBMBuilderHandler.validate_parameters(GBMBuilderHandler.java:18) 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:603) water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:434) java.lang.Thread.run(Thread.java:745)

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

Neeraja Madabhushi commented: Shared_tree.java updated with error condition.

DinukaH2O commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-698 Assignee: Neeraja Madabhushi Reporter: Neeraja Madabhushi State: Resolved Fix Version: N/A Attachments: Available (Count: 1) Development PRs: N/A

Attachments From Jira

Attachment Name: Screen Shot 2015-04-01 at 7.00.15 PM.png Attached By: Neeraja Madabhushi File Link:https://h2o-3-jira-github-migration.s3.amazonaws.com/PUBDEV-698/Screen Shot 2015-04-01 at 7.00.15 PM.png