ArffFileStream problem with EvaluateInterleavedTestThenTrain task

66 views
Skip to first unread message

mlu...@gmail.com

unread,
May 6, 2015, 7:44:19 AM5/6/15
to moa-...@googlegroups.com
Hi:

I am trying to do an EvaluateInterleavedTestThenTrain task using the airlines sample dataset and I do not understand why the following command fails:

java -cp moa.jar -javaagent:sizeofag.jar moa.DoTask "EvaluateInterleavedTestThenTrain -s (ArffFileStream -f airlines.arff)"

{M}assive {O}nline {A}nalysis
Version: 14.11 November 2014
Copyright: (C) 2007-2014 University of Waikato, Hamilton, New Zealand
Web: http://moa.cms.waikato.ac.nz/

                                                                              
Task failed. Reason:
java.lang.IllegalArgumentException: Problems with option: stream
    at moa.options.ClassOption.setValueViaCLIString(ClassOption.java:69)
    at moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask(EvaluateInterleavedTestThenTrain.java:103)
    at moa.tasks.MainTask.doTaskImpl(MainTask.java:50)
    at moa.tasks.AbstractTask.doTask(AbstractTask.java:57)
    at moa.tasks.TaskThread.run(TaskThread.java:76)
Caused by: java.lang.Exception: Problem with options to 'ArffFileStream'.

Valid options for ArffFileStream:
-f arffFile
ARFF file to load.
-c classIndex (default: -1)
Class index of data. 0 for none or -1 for last attribute in file.

    at moa.options.ClassOption.cliStringToObject(ClassOption.java:156)
    at moa.options.ClassOption.setValueViaCLIString(ClassOption.java:67)
    ... 4 more
Caused by: java.lang.IllegalArgumentException: Unknown option: -i
    at moa.options.Options.setViaCLIString(Options.java:149)
    at moa.options.ClassOption.cliStringToObject(ClassOption.java:154)
    ... 5 more

Can anyone help me?

Thanks in advance,

Luis

band...@gmail.com

unread,
May 6, 2015, 8:02:04 AM5/6/15
to moa-...@googlegroups.com
I had the same issue too

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "MOA users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moa-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Albert Bifet

unread,
May 8, 2015, 10:16:01 PM5/8/15
to moa-...@googlegroups.com
Thanks! It seems that this issue appears on Moa 14.11. We will fix this for the next release.

Meanwhile, please use

EvaluatePrequential -e BasicClassificationPerformanceEvaluator

that is equivalent to EvaluateInterleavedTestThenTrain.

Cheers, Albert
Reply all
Reply to author
Forward
0 new messages