LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

the meaning and cause of "[LightGBM] [Fatal] Check failed: (train_data->num_features()) > (0)"

Open royshan opened this issue 2 years ago • 1 comments

Hi,

When working with a high-dimension dataset which has many features but small samples, I often run into the following error: [LightGBM] [Fatal] Check failed: (train_data->num_features()) > (0) at c:\users\builder\appdata\local\temp\pip-req-build-zpa7v636\compile\src\treelearner\feature_histogram.hpp, line 1218 .

That line is in the function of void ResetConfig(const Dataset* train_data, const Config* config).

I don't understand why ResetConfig was called. What's the meaning and possible causes? Does that suggest I should abandon the model at all and adjust hyper-parameters?

Thank you for your help!

royshan avatar Jan 08 '23 15:01 royshan

Any comment or suggestion?

royshan avatar May 05 '23 01:05 royshan