GithubHelp home page GithubHelp logo

Comments (4)

liudragonfly avatar liudragonfly commented on July 29, 2024

树的训练拟合的是残差,在训练单棵树的时候可以当成回归。

from gbdt.

galaxy-fangfang avatar galaxy-fangfang commented on July 29, 2024

@liudragonfly
def MSE(values):
"""
均平方误差 mean square error
"""
if len(values) < 2:
return 0
mean = sum(values)/float(len(values))
error = 0.0
for v in values:
error += (mean-v)*(mean-v)
return error

有点不明白,我看均方误差的定义是sum(predict-label)^2,而这里感觉作者代码里面写的MSE是求的value的方差啊……求解答

from gbdt.

DeligientSloth avatar DeligientSloth commented on July 29, 2024

树的训练拟合的是残差,在训练单棵树的时候可以当成回归。

在xgboost时划分特征就是根据划分之后loss最小来决定是否划分以及选择最优划分点,请问xgboost和gbdt这两种策略有什么区别吗?为何gbdt不使用类似xgboost那样的策略

from gbdt.

liudragonfly avatar liudragonfly commented on July 29, 2024

@DeligientSloth 应该是GBDT和xgboost的loss定义不同造成的。xgboost可以看成是优化版本的GBDT。

from gbdt.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.