Error in iSAX example?

45 views
Skip to first unread message

Hollis Wright

unread,
Sep 12, 2011, 12:17:35 PM9/12/11
to jmotif-discuss
Hello; I’m trying to use the iSAX example given (the TIE16 valve
example) and I seem to be running into an error. Specifically, the
code fails with the following error:

Exception in thread "main" java.lang.NoSuchMethodError:
weka.core.Instances.size()I at
edu.hawaii.jmotif.logic.sax.SAXFactory.instances2Discords(SAXFactory.java:
349) at
iSaxOutlierDetector.ISaxOutlierDetector.main(ISaxOutlierDetector.java:
22)

I have tried both weka 3.4 and 3.6 in the classpath and have the same
error. Any assistance would be appreciated.

Hollis Wright, PhD
Knight Cancer Center
Oregon Health and Science University

Pavel Senin

unread,
Sep 12, 2011, 12:42:20 PM9/12/11
to jmotif-...@googlegroups.com
Hi Hollis:

I'm sorry that code doesn't work. 

In short, there are ongoing API changes in WEKA - they have dropped support for this data format and picked it back again in 3.7.x. Ive just tested on 3-7-3 (old development version) and code works fine.

If you wonder why I am using this format - I've tried to collaborate with WEKA guys, and the format after all seems to be cool.

I don't know your level of proficiency in coding Java, but if you are limited to weka 3.4 or 3.6 - this issue is easy to get over, I will be glad to help.


--
Mahalo, Pavel.

Hollis Wrighth

unread,
Sep 13, 2011, 10:05:31 PM9/13/11
to jmotif-...@googlegroups.com
Hi, Pavel; I'm actually pretty familiar with Java/Weka, as i used them heavily in my dissertation. Is it possible to get a source distribution of JMotif? I haven't used google code previously, so all I saw was the jar files. Thanks...

Hollis

Pavel Senin

unread,
Sep 14, 2011, 2:08:12 AM9/14/11
to jmotif-...@googlegroups.com
Sure, you just need to click on source tab (here): http://code.google.com/p/jmotif/source/checkout to browse and see changes. 

The links to checkout code on the page.

If you use Linux you type this:
svn checkout http://jmotif.googlecode.com/svn/trunk/ jmotif-read-only

If Windows you use TortoiseSVN or your IDE: Eclipse, NetBeans etc.

If you think the code can be improved - let me know - I'll give you a write access to repo.
--
Mahalo, Pavel.

Hollis Wrighth

unread,
Sep 14, 2011, 2:15:23 AM9/14/11
to jmotif-...@googlegroups.com
Ok, great; I mostly just want to change this issue if it turns out to be an API change in Weka causing it. From the error it almost literally looks like a typo in the code. I'll check it out tomorrow and see what I see.

Hollis
Reply all
Reply to author
Forward
0 new messages