-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Dataset.feature_name.__len__()
do not equal to Dataset.num_feature()
after add_features_from
another dataset
#3221
Comments
refer to #2754 |
I have merged ds0 = lgb.Dataset(np.random.normal(size=(3,4)), label=[1,2,3], feature_name=[f'X{i}' for i in range(4)], free_raw_data=False)
ds0.construct()
[LightGBM] [Warning] There are no meaningful features, as all feature values are constant. |
@JiaRu2016 I think the feature name in python-package is not fixed yet in the PR, it needs to get from lightgbm.dll. |
@JiaRu2016 BTW, LightGBM will filter the feature, based on min_data (and min_data_per_bin). |
@guolinke you are right. Explicitly set |
Fixed via #2754. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
How you are using LightGBM?
Environment info
Operating System: Ubuntu 18.04
CPU/GPU model: GPU
C++ compiler version: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: cmake version 3.17.1
Python version: 3.8
LightGBM version or commit hash: on both master and tag=v2.3.1 can reproduce this issue
Reproducible example(s)
Steps to reproduce
The text was updated successfully, but these errors were encountered: