请教一下,在进行文本分类时,转换成文档矩阵。用nnet进行建模时,里边公式应该怎么写,老是出错

0

QQ图片20161205093144.png

 
已邀请:
1

marxsong 2016-12-14 回答

尝试增加MaxNWts 值超过25696,已适应你的模型
默认的值为1000,如下:
"nnet"(x, y, weights, size, Wts, mask, linout = FALSE, entropy = FALSE, softmax = FALSE, censored = FALSE, skip = FALSE, rang = 0.7, decay = 0, maxit = 100, Hess = FALSE, trace = TRUE, MaxNWts = 1000, abstol = 1.0e-4, reltol = 1.0e-8, ...)
其中:
MaxNWts
The maximum allowable number of weights. There is no intrinsic limit in the code, but increasing MaxNWts will probably allow fits that are very slow and time-consuming.
这里面说明没有上限,但是增加MaxNWts可能会导致拟合变慢。

要回复问题请先登录注册