首页
IT
登录
6mi
u
盘
搜
搜 索
IT
RF、gbdt、xgboost参数
RF、gbdt、xgboost参数
xiaoxiao
2021-03-25
85
RandomForest
rf_params = {
'n_jobs'
:
16
,
'n_estimators'
:
100
,
'max_features'
:
0
.
2
,
'max_depth'
:
12
,
'min_samples_leaf'
:
2
, }
gbdt
xgboost
xgb_params = {
'seed'
:
0
,
'silent'
:
1
,
'objective'
:
'reg:linear'
,
#binary:logistic,multi:softmax,multi:softprob
'eval_metric'
:
'rmse'
,
#mae,logloss,
error
,merror,mlogloss,auc
'num_class'
:
4
,
# multi:softmax需要此参数
'max_depth'
:
4
,
'min_child_weight'
:
1
,
'subsample'
:
0.7
,
'colsample_bytree'
:
0.7
,
'learning_rate'
:
0.075
,
# eta
'gamma'
:
0.01
,
'alpha'
:
0.01
,
'lambda'
:
0.01
,
'nthread'
:
4
,
'nrounds'
:
500
}
转载请注明原文地址: https://ju.6miu.com/read-37034.html
技术
最新回复
(
0
)