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

Question about categorical_columns() #39

Open
issactoast opened this issue Apr 19, 2021 · 0 comments
Open

Question about categorical_columns() #39

issactoast opened this issue Apr 19, 2021 · 0 comments

Comments

@issactoast
Copy link

Hi, thank you for making this awesome package!

Now i am using LightGBM via treesnip and got an error about categorical column parameter. I found that the package figure out categrocal columns itself using categorical_columns() but I think this does not match with the LGBM options.

prepare_df_lgbm <- function(x, y = NULL) {
  categorical_cols <- categorical_columns(x)
  x <- categorical_features_to_int(x, categorical_cols)
  x <- as.matrix(x)
  return(x)
}

Can we change the package allows to pick what is the categorical columns? This is needed because usually we have all numerical variables after the recipe in tidymodels (for example step_integer() in recipe), so I guess this categorical_columns() never run in this tidymodels frame work.

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

1 participant