Skip to content
Advertisement

LightGBMError “Check failed: num_data > 0” with Sklearn RandomizedSearchCV

I’m trying LightGBMRegressor parameter tuning with Sklearn RandomizedSearchCV. I got an error with message below.

error:

JavaScript

I cannot tell why and the specific parameters caused this error. Any of params_dist below was not suitable for train_x.shape:(1630, 1565)?

Please tell me any hints or solutions. Thank you.

LightGBM version: ‘2.0.12’

function caused this error:

JavaScript

Too long to put full stack trace, here is on the lightgbm src.

JavaScript

Advertisement

Answer

Minimum value of bagging_fraction and feature_fraction could be too small. I changed the distribution to “sp.stats.uniform(loc=0.1, scale=0.9)” and it works.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement