gbdt和xgboost api

Posted simple_wxl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gbdt和xgboost api相关的知识,希望对你有一定的参考价值。

class xgboost.XGBRegressor(max_depth=3learning_rate=0.1n_estimators=100silent=Trueobjective=‘reg:linear‘booster=‘gbtree‘n_jobs=1nthread=Nonegamma=0min_child_weight=1max_delta_step=0subsample=1colsample_bytree=1colsample_bylevel=1reg_alpha=0reg_lambda=1scale_pos_weight=1base_score=0.5random_state=0seed=Nonemissing=None**kwargs)

 

class sklearn.ensemble.GradientBoostingClassifier(loss=‘deviance‘learning_rate=0.1n_estimators=100subsample=1.0criterion=‘friedman_mse‘min_samples_split=2min_samples_leaf=1min_weight_fraction_leaf=0.0max_depth=3min_impurity_split=1e-07init=Nonerandom_state=Nonemax_features=Noneverbose=0max_leaf_nodes=Nonewarm_start=Falsepresort=‘auto‘)

 

以上是关于gbdt和xgboost api的主要内容,如果未能解决你的问题,请参考以下文章

Adaboost和GBDT的区别以及xgboost和GBDT的区别

GBDT为什么不能并行,XGBoost却可以

GBDT XGBOOST的区别与联系

GBDT和XgBoost

xgboost和gbdt区别

GBDT家族:GBDT家族成员的演进路劲xgboost模型lightGBMLightGBM 相对于 XGBoost 的优点catboostxgboostcatboostlightGBM对