1 May 2007 02:07
Re: filterOptions code
Angshu Kar <angshu96 <at> gmail.com>
2007-05-01 00:07:25 GMT
2007-05-01 00:07:25 GMT
Can you please point me to some docs for that?
Also removing the " " doesn't help!
On 4/30/07, Peter Reutemann <fracpete <at> waikato.ac.nz> wrote:
> Can anyone please tell where I am going wrong with the following code? It's
> not applying the filter!
>
> I use:
>
> String filter = "weka.filters.unsupervised.attribute.Remove";
> Vector filterOptions = new Vector();
> filterOptions.add(" -V");
...
You have a leading blank there for option "-V". Remove that and it
should work.
BTW you don't have to use the commandline options to setup a filter, you
can also use the usual get/set-methods for configuring a filter.
HTH
Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
_______________________________________________
Wekalist mailing list
Wekalist <at> list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
--
So little done, so much to do...
_______________________________________________ Wekalist mailing list Wekalist <at> list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
RSS Feed