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

Error: Too many levels in unordered categorical variable. Only 63 levels allowed on this system. Ranger will EXIT now. #728

Open
Datou0718 opened this issue Jul 2, 2024 · 3 comments

Comments

@Datou0718
Copy link

Hi, I'm new to ranger and encountered this problem in cpp_version. One of the columns col_1 is unordered with a relatively high dimension(131), I set col_1 to catvar and resulted in the following error, "Error: Too many levels in unordered categorical variable col_1. Only 63 levels allowed on this system. Ranger will EXIT now.". I've searched for solutions but it seems that this should work fine(#146 says this is version issue, but my ranger version is 0.16.2). I have no idea how to fix it😢.

@mnwright
Copy link
Member

mnwright commented Jul 2, 2024

The "order" splitrule is unfortunately only implemented in the R version. The pure C++ version uses "partition" splitting which has the 63 level limit.

@Datou0718
Copy link
Author

Thank you for answering! I have another question, is it possible to use class_weights with C++ or only case_weights supported?

@mnwright
Copy link
Member

mnwright commented Jul 4, 2024

Hmpf yes, you found another feature that didn't make it to the pure C++ version. ☹️

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

2 participants