what does the error "Length of label is not same with #data" when I call lightgbm.train
It simply means that the dimensions of your training examples and the respective list of labels do not match. In other words, if you have 10 training instances you need exactly 10 labels. (For a multi-label scenarios a better formulation would be to replace label by labelling, or refer to the size of the array.)
I'm pretty new the LightGBM, and when I try to apply lightgbm.train on my dataset, I got this error:
LightGBMError: Length of label is not same with #data
I'm not sure where I made a mistake. I tried
model = lightgbm.train(params, train_data, valid_sets=test_data, early_stopping_rounds=150, verbose_eval=200)
Thanks in advance.