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

Specify Categorical Features in LightGBM #7137

Open
matnatx opened this issue Apr 22, 2024 · 0 comments
Open

Specify Categorical Features in LightGBM #7137

matnatx opened this issue Apr 22, 2024 · 0 comments
Labels
enhancement New feature or request untriaged New issue has not been triaged

Comments

@matnatx
Copy link

matnatx commented Apr 22, 2024

I'm trying to use LightGBM algorithm in ML.NET to train a model using a dataset.

The dataset has a number of categorical features such as "gender", "race", "country_of_birth".

I can convert/encode these categorical data as integers.

My question is how I can specify that these features are categorical and not (continuous variables), so that LightGBM can handle them as categorical data.

I can use OneHotEncoding/OneHotHashEncoding, but I believe it's not the same.

TIA

@matnatx matnatx added the enhancement New feature or request label Apr 22, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

1 participant