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

[R] Introductory vignette is outdated #10746

Open
david-cortes opened this issue Aug 24, 2024 · 0 comments · May be fixed by #11123
Open

[R] Introductory vignette is outdated #10746

david-cortes opened this issue Aug 24, 2024 · 0 comments · May be fixed by #11123

Comments

@david-cortes
Copy link
Contributor

The R vignette " Understand your dataset with XGBoost" is quite outdated after all the changes that XGBoost has implemented since it was written.

For example, it writes:

XGBoost manages only numeric vectors.

What to do when you have categorical data?
To answer the question above we will convert categorical variables to numeric one.

But categorical features are now supported.

The method we are going to see is usually called one-hot encoding.

(which makes sense given that it refers to a discretized version of a numeric variable)

But XGBoost can already do the one-hot encoding through parameters like max_cat_to_onehot.

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

Successfully merging a pull request may close this issue.

1 participant