我正在尝试使用multinom包在我的数据集上运行多项逻辑回归。我的数据集有25029行和5735列,基本上是这样做的:
test <- multinom(5735th_var ~ ., data = training.set...etc)
我遇到了几个错误,这让我调整了两个选项:
maxit = 1000, MaxNWts = 143541315
在我的multinom功能中。
然而,现在我面临更多警告(运行30分钟后):
Error: cannot allocate vector of size 592 Kb
In addition: Warning messages:
1: In nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, :
Reached total allocation of 30719Mb: see help(memory.size)
2: In nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, :
Reached total allocation of 30719Mb: see help(memory.size)
3: In nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, :
Reached total allocation of 30719Mb: see help(memory.size)
4: In nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, :
Reached total allocation of 30719Mb: see help(memory.size)
关于计算机内存,ram和所有这些东西,我不是专家,我在R上调查了一些大数据操作,但我仍然没有真正得到我能做的事情成功运行此代码。
任何建议都将受到赞赏。
感谢。