ArrayIndexOutOfBounds when using GradientBoostingForestClassifier
See original GitHub issueHi. Thanks for stacknet classifier. I encountered a exception when I try to add some more features to the kaggle quora problem.
Exception in thread "Thread-23" java.lang.ArrayIndexOutOfBoundsException: 12
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3011)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3042)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3042)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3042)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3042)
at ml.Tree.DecisionTreeRegressor.expand_node(DecisionTreeRegressor.java:3038)
at ml.Tree.DecisionTreeRegressor.fit(DecisionTreeRegressor.java:2382)
at ml.Tree.DecisionTreeRegressor.run(DecisionTreeRegressor.java:483)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-5" java.lang.NullPointerException
at ml.Tree.DecisionTreeRegressor.isfitted(DecisionTreeRegressor.java:3275)
at ml.Tree.scoringhelperv2.<init>(scoringhelperv2.java:107)
at ml.Tree.RandomForestRegressor.predict2d(RandomForestRegressor.java:744)
at ml.Tree.GradientBoostingForestClassifier.fit(GradientBoostingForestClassifier.java:2353)
at ml.Tree.GradientBoostingForestClassifier.run(GradientBoostingForestClassifier.java:382)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "main" java.lang.NullPointerException
at ml.Tree.scoringhelperfv2.<init>(scoringhelperfv2.java:107)
at ml.Tree.GradientBoostingForestClassifier.predict_proba(GradientBoostingForestClassifier.java:603)
at ml.stacknet.StackNetClassifier.fit(StackNetClassifier.java:2438)
at stacknetrun.runstacknet.main(runstacknet.java:385)
Exception in thread "Thread-28783" java.lang.NullPointerException
at ml.Tree.DecisionTreeRegressor.isfitted(DecisionTreeRegressor.java:3275)
at ml.Tree.scoringhelperv2.<init>(scoringhelperv2.java:107)
at ml.Tree.RandomForestRegressor.predictfs(RandomForestRegressor.java:590)
at ml.Tree.scoringhelperfv2.score(scoringhelperfv2.java:149)
at ml.Tree.scoringhelperfv2.run(scoringhelperfv2.java:175)
at java.lang.Thread.run(Thread.java:745)
I used the paramsv1.txt but add more threads to each base classifier.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
ArrayIndexOutOfBoundsException using Tree Ensemble ...
Sorry, the Gradient Boosted Trees Predictor error is inconsistent, and most likely has to do with the size of input and/or parameters.
Read more >sklearn.ensemble.GradientBoostingClassifier
It is a good choice for classification with probabilistic outputs. For loss 'exponential', gradient boosting recovers the AdaBoost algorithm.
Read more >I am trying to run Gradient Boosting Classifier - Stack Overflow
Based on your provided code and data preview, ValueError occurs because you're feeding in the string values/categorical data to the GBM ...
Read more >Gradient Boosting for Classification - Paperspace Blog
In this article we'll cover how gradient boosting works intuitively and mathematically, its implementation in Python, and pros and cons of its use....
Read more >How to Develop a Gradient Boosting Machine Ensemble in ...
How to use the Gradient Boosting ensemble for classification and regression with scikit-learn. How to explore the effect of Gradient Boosting ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the help.
Apologies for late response. I am still working on these things. The error in your case was triggered because you have some elements with ‘zero’ values. like col_index:0.00000 . StackNet are not expecting zero values in the sparse format . However with the newer version I will release, this will be taken care of. Apologies for coming back late again. I did not forget you- it is just I am buried with tasks these days.