Weka 常见问题处理:
weka如何安装支持向量机工具包
方法一、打开 weka,工具栏的Tools–>Package manager,可在里面添加需要的工具包。
方法二、下载 libsvm-**.jar 包,开源的。解压文件夹,里面……\libsvm-3.19\java ,下面有jar包。将jar包加压到某个路径,如D:\Program\Weka-3-8,打开RunWeka.in文件,在最后一行cp=%CLASSPATH%后面加个分号(路径分隔符),把libsvm.jar包的路径添上,将符号\改成/,weka才能识别,必要时,还要重启weka。
Out of Memory
查看weka的系统设置:
可在
start the SimpleCLI
run the following command:
java weka.core.SystemInfo
the property memory.max lists the maximum amount of memory available to WEKA
设置weka的最大使用内存
方法一和方法二的前提是你得有修改文件的权限。
方法一、Go to the Weka installation directory and you will find a RunWeka.bat file.
Open this file in a text editor and add -Xmx argument in the java command line.
for instance this sets to 4GB memory,
%_java% -Xmx4096m -classpath . RunWeka -i .\RunWeka.ini -w .\weka.jar -c %_cmd% "%2"
方法二、Go to the Weka installation directory and you will find a RunWeka.ini file
Open this file in a text editor and Modify the maxheap parameter in the RunWeka.ini file
#maxheap=1024M
maxheap=4096M