温婉老鼠

文章
3
资源
0
加入时间
3年1月7天

GBDT训练分类器时,残差是如何计算的?

大家都知道,对于回归任务,GBDT的loss=(y-pred)^2,因此残差residual=2*(y-pred)很容易理解。那么,GBDT做分类任务时,残差是怎样的呢???Gradient Boosting attempts to solve this minimization problem numerically via steepest descent,The st

关于lua table重复定义相同内容对内存的影响

首先看一个问题,假如一个table如下:local acty = { acty.init = function() acty.id = 1 end}如果此时这样操作,对内存会有什么影响?acty.init = function() acty.id = 2end实验测试:定义以下内容local function onParse(acty) acty.init = function() acty.id = 1 end