Skip to content

Specify Categorical Features in LightGBM #7137

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuntriagedNew issue has not been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions