使用R运行大型数据的内存问题

时间:2012-12-13 22:31:47

标签: r

我在一个非常大的数据集上运行基于svm的分类算法(使用e1071软件包),并且R返回以下警告消息:

> model1 <- svm(features.training,labels.training,type='C',kernel='linear')
  Error: cannot allocate vector of size 457.8 Mb
  In addition: Warning messages:
 1: In data.frame(y, x) :
   Reached total allocation of 3893Mb: see help(memory.size)
 2: In data.frame(y, x) :
   Reached total allocation of 3893Mb: see help(memory.size)
 3: In data.frame(y, x) :
    Reached total allocation of 3893Mb: see help(memory.size)
 4: In data.frame(y, x) :
    Reached total allocation of 3893Mb: see help(memory.size)

该机器具有4G RAM,可在Windows 7-64bit操作系统上运行。如何处理这个问题?

0 个答案:

没有答案