>>> import weka.core.jvm as jvm
>>> jvm.start(packages=True)
DEBUG:weka.core.jvm:Adding bundled jars
DEBUG:weka.core.jvm:Adding Weka packages
DEBUG:weka.core.jvm:package_dir=C:\Users\fracpete\wekafiles\packages
DEBUG:weka.core.jvm: directory=C:\Users\fracpete\wekafiles\packages\LibSVM
DEBUG:weka.core.jvm:Classpath=['C:\\Python27\\lib\\site-packages\\javabridge\\jars\\rhino-1.7R4.jar', 'C:\\Python27\\lib\\site-packages\\javabridge\\jars\\runnablequeue.jar', 'C:\\Python27\\lib\\site-packages\\javabridge\\jars\\cpython.jar', 'C:\\Python27\\lib\\site-packages\\weka\\lib\\python-weka-wrapper.jar', 'C:\\Python27\\lib\\site-packages\\weka\\lib\\weka.jar', 'C:\\Users\\fracpete\\wekafiles\\packages\\LibSVM\\lib\\libsvm.jar', 'C:\\Users\\fracpete\\wekafiles\\packages\\LibSVM\\LibSVM.jar']
DEBUG:weka.core.jvm:MaxHeapSize=default
DEBUG:javabridge.jutil:Creating JVM object
DEBUG:javabridge.jutil:Signalling caller
>>> from weka.classifiers import Classifier
>>> cls = Classifier(classname="weka.classifiers.functions.LibSVM")
>>> import weka.core.converters as converters
>>> from weka.core.converters import Loader
>>> loader = Loader(classname="weka.core.converters.ArffLoader")
>>> data = loader.load_file("C:\\Users\\fracpete\\Downloads\\iris.arff")
>>> data.class_is_last()
>>> cls.build_classifier(data)
*
optimization finished, #iter = 46
nu = 0.04649643899269115
obj = -2.4034163421252717, rho = 0.03985691051205832
nSV = 11, nBSV = 2
*
optimization finished, #iter = 30
nu = 0.038905109445750645
obj = -1.9451468376629963, rho = 0.1677745320943027
nSV = 10, nBSV = 0
*
optimization finished, #iter = 36
nu = 0.2935651466869792
obj = -21.37749109099391, rho = 0.143704687543137
nSV = 33, nBSV = 26
Total nSV = 45
Not yet a release, you'll have to install from source.
Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz
--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To post to this group, send email to python-we...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/33078456-0718-4fde-8644-8464f2b918af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wrapper+unsub...@googlegroups.com.
> Getting it working was a simple matter after you made this change.
>
> Here's what I did (in case anyone has a similar problem in the future):
>
> 1. Started from a clean install of WinPython
> 2. Installed javabridge following the instructions given by the WinPython team (https://github.com/winpython/winpython/wiki/Installing-Additional-Packages)
> 3. Downloaded python-weka-wrapper from github
> 4. Used WinPython Package Manager to install directly from the source zip file
> 5. Passed the path to the Weka home dir as the value for the packages parameter of jvm.start()
Excellent!
Cheers, Peter