-
Notifications
You must be signed in to change notification settings - Fork 165
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
Adds support to specify categorical features in lgbm learner #197
Open
fberanizo
wants to merge
8
commits into
nubank:master
Choose a base branch
from
fberanizo:add-lgbm-categorical-features-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Adds support to specify categorical features in lgbm learner #197
fberanizo
wants to merge
8
commits into
nubank:master
from
fberanizo:add-lgbm-categorical-features-support
+102
−12
Commits on May 20, 2022
-
Adds support to specify categorical features in lgbm learner
LightGBM can offer a good accuracy when using native categorical features. Not like simply one-hot coding, LightGBM can find the optimal split of categorical features. Such an optimal split can provide the much better accuracy than one-hot coding solution. You can learn about this option in: https://github.com/microsoft/LightGBM/blob/master/docs/Advanced-Topics.rst#categorical-feature-support https://github.com/Microsoft/LightGBM/blob/v3.3.1/docs/Parameters.rst
Configuration menu - View commit details
-
Copy full SHA for 639c8a9 - Browse repository at this point
Copy the full SHA 639c8a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3f221f - Browse repository at this point
Copy the full SHA c3f221fView commit details -
Fix typing annotation of categorical_features
It is a Union[List[str], str]
Configuration menu - View commit details
-
Copy full SHA for bf4dc15 - Browse repository at this point
Copy the full SHA bf4dc15View commit details -
Changes lgbm.Dataset source to a pandas.DataFrame
Previously, the source was the underlying numpy.array, but in order to allow categorical_feature='auto' we need to pass a DataFrame.
Configuration menu - View commit details
-
Copy full SHA for 4556c80 - Browse repository at this point
Copy the full SHA 4556c80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 020b1d3 - Browse repository at this point
Copy the full SHA 020b1d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8a16e3 - Browse repository at this point
Copy the full SHA e8a16e3View commit details
Commits on Aug 29, 2022
-
Removes occurrences of DataFrame.values (ndarray)
Uses the DataFrame everywhere it's possible.
Configuration menu - View commit details
-
Copy full SHA for 03e84e0 - Browse repository at this point
Copy the full SHA 03e84e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a498d9 - Browse repository at this point
Copy the full SHA 5a498d9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.