Weka中虽然默认有libsvm接口,但是不会自动安装libsvm库,若需要使用,需要手动设置libsvm库地址,Weka目录下的RunWeka.ini中
有如何设置libsvm的说明,文字如下:
# The classpath placeholder. Add any environment variables or jars to it that
# you need for your Weka environment.
# Example with an enviroment variable (e.g., THIRD_PARTY_LIBS):
# cp=%CLASSPATH%;%THIRD_PARTY_LIBS%
# Example with an extra jar (located at D:/libraries/libsvm.jar):
# cp=%CLASSPATH%;D:librarieslibsvm.jar
# Or in order to avoid quadrupled backslashes, you can also use slashes "/":
# cp=%CLASSPATH%;D:/libraries/libsvm.jar
当然,设置之前需要先下载libsvm