![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
xgboost
python小白努力中
自信,美好,永不止步。
chinacheng2023
展开
-
GBDT和XGB和Adaboost面试汇总
文章目录1. xgboost相比传统gbdt有何不同?2. xgboost为什么快?3. xgboost如何支持并行?4. 随机森林是怎样改变决策树容易过拟合的问题的?5. RF与GBDT之间的区别与联系?6. XGBoost怎么给特征评分?7. 怎么理解决策树、xgboost能处理缺失值?而有的模型(svm)对缺失值比较敏感?8. 为什么XGBoost要用泰勒展开,优势在哪里?9. XGBoost如何寻找最优特征?是又放回还是无放回的呢?10. 请问GBDT和XGBoost的区别是什么原创 2020-12-30 16:19:06 · 178 阅读 · 0 评论 -
xgboost算法API(回归,分类)
安装xgboost之后,使用import引入即可使用其中、xgboost模块的XGBClassifier类是解决分类问题、XGBRegressor类是解决回归问题。xgboost.XGBClassifier(max_depth=3,learning_rate=0.1,n_estimators=100,silent=True,objective=‘binary:logistic’,booster=‘gbtree’,n_jobs=1,nthread=None,gamma=0,min_child_we.原创 2020-09-01 09:34:46 · 1517 阅读 · 0 评论 -
XGboost代码实战
#! /usr/bin/python import numpy as np import xgboost as xgb # label need to be 0 to num_class -1 # if col 33 is '?' let it be 1 else 0, col 34 substract 1 data = np.loadtxt('./dermatology.data', delimiter=',',conve...原创 2020-08-20 10:38:42 · 187 阅读 · 0 评论