Weka GUI - Not enough memory, won't load?

混江龙づ霸主 提交于 2019-12-01 05:16:40

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,

maxheap=200m

There might already be such an option in that file that you can simply change to a larger number.

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:

#!/bin/bash

. /usr/lib/java-wrappers/java-wrappers.sh

# default options
CLASS="weka.gui.GUIChooser"
MEMORY="256m"
GUI=""

Just modify the line starts with MEMORY so that you have larger upper bound.

MEMORY="2048m"

Here is how to do it on Mac:

  • right-click on the main Weka file (that opens the Gui) and select "Show Package Contents";
  • open Info.plist file with any text editor;
  • change the -Xmx option.

viola

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!