LightGBMError: b'Label must be in [0, 3), but found -2147483648 in label'

تعرفه تبلیغات در سایت

آرشیو مطالب

امکانات وب

Vote count: 0

I was running cross validation using lightgbm and see the following error with one set of inputs while all my other inputs works well.

    LightGBMError: b'Label must be in [0, 3), but found -2147483648 in label'

All my inputs x, y are both numpy arrays and the following is my code for running cross validation:

    def cross_validate_lgbm():
        lgbm_params = t4_params.copy()
        lgbm_params['num_class'] = 3

        # prepare data for lgbm
        dset = lgbm.Dataset(x, y, silent = True)

        # perform cross-validation
        cv_results = lgbm.cv(lgbm_params, dset, num_boost_round=10000, 
                     nfold=5, stratified=False, shuffle=True, 
                     metrics='multi_logloss', early_stopping_rounds=100, 
                     verbose_eval=50, show_stdv=True, seed=0)
asked 1 min ago
CathyQian

نویسنده : استخدام کار بازدید : 3 تاريخ : سه شنبه 15 اسفند 1396 ساعت: 5:59
برچسب‌ها :

خبرنامه

عضویت

نام کاربري :
رمز عبور :