XGBoost python安装问题和模型原理

XGBoost windows 安装问题

直接pip install 可能遇到 下面这个问题

No files/directories in c:\users\yaron\appdata\local\temp\pip-build-qsfrwo\xgboost\pip-egg-info (from PKG-INFO)

下面这个网站给了可操作的解决方案

https://stackoverflow.com/questions/33749735/how-to-install-xgboost-package-in-python-windows-platform/35119904#35119904

比较简单的是到这个网站下载wrapper,注意match python的版本和windows操作系统版本。

https://www.lfd.uci.edu/~gohlke/pythonlibs/

XGBoost 官方tutorial

http://xgboost.readthedocs.io/en/latest/model.html

cart  

A CART is a bit different from decision trees, where the leaf only contains decision values. In CART, a real score is associated with each of the leaves, which gives us richer interpretations that go beyond classification. This also makes the unified optimization step easier, as we will see in a later part of this tutorial.

不一定的。有可能是因为一些数值上的原因,比如共线性,就会导致系数估计非常不准,有可能共线性的变量的系数特别大或者特别小

正则让变量倾向于变小,对于真正重要的变量它的系数还是很大,不那么重要的就会相对变小。而且它也让模型倾向于从更多的输入中提取信息,而不是只依赖一两个特征

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值