Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many levels in unordered categorical variable error with high dimensionality column #146

Closed
krishnateja614 opened this issue Nov 28, 2016 · 3 comments

Comments

@krishnateja614
Copy link

I recently stumble upon Ranger package and ideally it should be perfect for my project since I'm dealing with a column with high dimensionality (~4000, all right not so high dimensional :)) and Ranger handles that natively. The dimensions are not ordered in my column and hence I'm setting the parameter "respect.unordered.factors=TRUE" which is giving me the following error, "Too many levels in unordered categorical variable col_1. Only 63 levels allowed on this system. Consider ordering this factor" .I installed the R package from CRAN and not the dev version. Can someone help me how to resolve this error?. What I could gather was this error is present in the randomforest fortran package but I don't know what caused this error in my setting?

@mnwright
Copy link
Member

Which version of ranger are you using? With the newest CRAN version (0.6.0) this should work.

@krishnateja614
Copy link
Author

Thanks for pointing this out. Even though I ran install.packages("ranger"), it didn't update from 0.4.0 to 0.6.0 and packageVersion was still showing 0.4. I installed it manually with source files from CRAN and now that I'm on 0.6.0, the error hasn't occurred.Thanks for pointing this out.

@mnwright mnwright closed this as completed Dec 7, 2016
@GearFear
Copy link

Deal with same issue, using cpp_version, version 0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants