Closed ChoonB closed 1 month ago
params = { 'objective': 'regression', 'metric': 'mae', 'boosting_type': 'gbdt', 'num_leaves': 31, 'learning_rate': 0.05, 'feature_fraction': 0.9, 'bagging_fraction': 0.8, 'bagging_freq': 5, 'seed': 42 } n_folds = 5 model = lgb.train( params, dtrain, num_boost_round=1000, valid_sets=[dtrain, dval], callbacks=[print_evaluation(period=100)] )