我正在通过doRedis在集群上运行插入符号train
中的函数。在大多数情况下,它是有效的,但是我经常在这种性质的最后遇到错误:
error calling combine function:
<simpleError: obj$state$numResults <= obj$state$numValues is not TRUE>
和
Error in names(resamples) <- gsub("^\\.", "", names(resamples)) :
attempt to set an attribute on NULL
当我跑步时,traceback()
我得到:
5: nominalTrainWorkflow(dat = trainData, info = trainInfo, method = method,
ppOpts = preProcess, ctrl = trControl, lev = classLevels,
...)
4: train.default(x, y, weights = w, ...)
3: train(x, y, weights = w, ...)
2: train.formula(couple ~ ., training.balanced, method = "nnet",
preProcess = "range", tuneGrid = nnetGrid, MaxNWts = 2200)
1: caret::train(couple ~ ., training.balanced, method = "nnet",
preProcess = "range", tuneGrid = nnetGrid, MaxNWts = 2200)
这些错误不容易重现(即它们有时会发生,但并非始终如一),并且只会在运行结束时发生。集群上的标准输出显示所有正在运行和完成的任务,所以我有点困惑。
有没有人遇到过这些错误?如果是这样,了解原因并更好地解决?