Weka GUI - 内存不足,无法加载?
我过去也曾加载过同样的 Weka 安装。我只是尝试加载 Weka GUI(双击图标),但出现以下错误。我该如何修复它?
OutOfMemory
Not enough memory. Please load a smaller dataset or use a larger heap size.
- initial JVM size: 122.4 MB
- total memory used: 165.3 MB
- max. memory avail.: 227.6 MB
Note:
The Java heap size can be specified with the -Xmx option.
etc..
我没有从命令行加载 Weka,那么如何阻止这种情况发生呢?
This same installation of Weka has loaded for me in the past. I am simply trying to load the Weka GUI (double click on the icon) and I get the following error. How can I fix it?
OutOfMemory
Not enough memory. Please load a smaller dataset or use a larger heap size.
- initial JVM size: 122.4 MB
- total memory used: 165.3 MB
- max. memory avail.: 227.6 MB
Note:
The Java heap size can be specified with the -Xmx option.
etc..
I am not loading Weka from the command line, so how can I stop this from occurring?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只需在这里为 ubuntu 用户写一个答案即可。
如果您
apt-get install weka
,您将在/usr/bin/weka
安装一个脚本前几行如下所示:
只需修改以
MEMORY
开头的行,以便获得更大的上限。Just write an answer here for ubuntu users.
If you
apt-get install weka
, you will have a script installed at/usr/bin/weka
The first a few lines look like below:
Just modify the line starts with
MEMORY
so that you have larger upper bound.我不知道为什么你以前可以使用它,但现在不行。但是,您可以通过更改 RunWeka.ini 配置文件来指定更大的堆大小。在 Windows 计算机上,它应该位于 Program Files 目录的 Weka 文件夹中。您可以尝试指定一行,例如,
该文件中可能已经有这样一个选项,您可以简单地更改为更大的数字。
I'm not sure why you were able to use it before but not now. However, you can specify a larger heap size by changing the
RunWeka.ini
configuration file. On a Windows machine it should be in the Weka folder of your Program Files directory. You could try a line specifying, for example,There might already be such an option in that file that you can simply change to a larger number.
以下是在 Mac 上执行此操作的方法:
中提琴
Here is how to do it on Mac:
viola