Answers for "xgbboostclassifier model"

0

xgbboostclassifier model

data_dmatrix = xgb.DMatrix(data=X,label=y)
Posted by: Guest on April-17-2021
0

xgbboostclassifier model

params = {"objective":"reg:linear",'colsample_bytree': 0.3,'learning_rate': 0.1,
                'max_depth': 5, 'alpha': 10}

cv_results = xgb.cv(dtrain=data_dmatrix, params=params, nfold=3,
                    num_boost_round=50,early_stopping_rounds=10,metrics="rmse", as_pandas=True, seed=123)
Posted by: Guest on May-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language