【发布时间】:2017-03-08 22:41:03
【问题描述】:
我正在玩 xgboost,有一些财务数据,并想尝试将伽马回归作为目标。
cvs <- xgb.cv(data = sparse_matrix, label = target, nfold = 10, nthread = 4, nround = 16, objective = "reg:gamma", metrics = list("mae"))
但这似乎比使用线性回归作为目标需要更长的时间。
并且还会抛出很多如下警告:
In foldVector[which(y == dimnames(numInClass)$y[i])] <- sample(seqVector) :
number of items to replace is not a multiple of replacement length
此警告重复了大约 50 次。
发生了什么事?我不应该使用 reg:gamma 作为目标吗,因为 reg:linear 工作得很好,我只是在玩,只是想尝试各种目标
谁能指出为什么会出现这些警告?
【问题讨论】: