h2o - Tweedie 响应 link 函数

h2o - Tweedie response link function

我正在使用 h2o.gbm,我正在指定 tweedie 分布。应该记录响应,我认为通过指定一个 tweedie 分布,h2o 将记录响应。鉴于文档中的以下内容:

When specifying the distribution, the loss function is automatically selected as well. For exponential families (such as Poisson, Gamma, and Tweedie), the canonical logarithmic link function is used.

但是,tweedie 分布的点质量为 0。因此,如果 h2o 正在记录响应,它实际上是在值为 0 时记录响应变量还是存在其他一些转换?例如:

data[,"new_response"] <- h2o.if_else(data$response == 0, 0, log(data$response))

响应值设置为 .1,以防止记录 0。您可以找到发生这种情况的代码行 here

double y1 = yr == 0?.1:yr;