You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, I am not sure if this is related/hinted at in #960.
I am sorry if (you feel) this is a duplicate, feel free to close it.
As per the title, when using lightgbm.Dataset constructed from pandas.DataFrame for both train and validation data, I get the warning UserWarning: categorical_feature in param dict is overridden. even if categorical_feature is never specified.
And a question, if I may; I am now not sure now if lightgbm properly uses the categorical features despite this warning. Does this behavior have any effect on the actual models?
@PGijsbers First of all thanks a lot for the reproducible example! We will use it as one of use cases in test_pandas.py to ensure the quality of logging routine.
Everything is OK with your code. LightGBM uses unordered category columns from pandas DataFrame as category features by default. You may ignore this warning as it was introduced as the confirmation that LightGBM uses category features (as the opposite side to a case when user explicitly specifies category features, but LightGBM doesn't use them). I completely agree that this warning is very annoying and we'll definitely refactor it as a part of work on #960 and #1021.
First off, I am not sure if this is related/hinted at in #960.
I am sorry if (you feel) this is a duplicate, feel free to close it.
As per the title, when using
lightgbm.Dataset
constructed frompandas.DataFrame
for both train and validation data, I get the warningUserWarning: categorical_feature in param dict is overridden.
even ifcategorical_feature
is never specified.And a question, if I may; I am now not sure now if
lightgbm
properly uses the categorical features despite this warning. Does this behavior have any effect on the actual models?MWE:
Environment info
OS: Debian GNU/Linux 8 (jessie) in a docker container hosted on Windows 10 Enterprise, 64 bit.
Python: 3.6.4
Lightgbm: 2.2.3
The text was updated successfully, but these errors were encountered: