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.87k stars 1.99k forks source link

[R] XGBoost : fold_column parameter doesn't accept contiguous integers #12764

Open exalate-issue-sync[bot] opened 1 year ago

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

Error: water.exceptions.H2OIllegalArgumentException: Fold column must be either categorical or contiguous integers from 0..N-1 or 1..N at hex.ModelBuilder.cv_AssignFold(ModelBuilder.java:358) at hex.ModelBuilder.computeCrossValidation(ModelBuilder.java:314) at hex.ModelBuilder$1.compute2(ModelBuilder.java:248) at water.H2O$H2OCountedCompleter.compute(H2O.java:1267) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

I'm using month

{code:java} h2o.getTypes(month) [[1]] [1] "int"

h2o.unique(month) C1 1 1 2 2 3 3 4 4 5 5 6 6

[12 rows x 1 column] {code}

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-5912 Assignee: New H2O Bugs Reporter: Samy Basset State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A