
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
I am trying to run my own algorithm (in java) in weka but i am unable to include it into weka. I took the following steps to include the algorithm, as suggested in the
www.weka.wiki.sourceforge.net/genericobjecteditor+developerversion.htm(the document is attached hereunder in the attachments)
1.Previously, I was using weka version 3.5.8, in which the dynamic discovery of classes at runtime is disabled by default. So i downloaded Version 3.6.1 of Weka in which this feature is available.
2.I unzipped the weka.jar and weka-src.jar into respective folders and navigated to weka/gui and then opened genericpropertiescreator.props and set UseDynamic to false.
3.I have set the classpaths of weka.jar and weka-src.jar in the environment variables.
4.Then i tried to generate GOE(generic object editor file) by using the command {java weka.gui.GenericPropertiesCreator %USERPROFILE%\GenericPropertiesCreator.props %USERPROFILE%\GenericObjectEditor.props},
but this commnad didn't work at java console and gave an exception.
5.My algorithm lies in the path sameer\classifiers\att.java, and i have compiled this algorithm also successfully in java and built a class file 'att', which lies in the same directory.
6.I have appended the variable Weka.classifier.classifiers=\sameer.classifiers in the GPC(generic properties creator.props file).
7.Then, i executed the following commands at java console:-
java -classpath "weka.jar" weka.gui.GUIChooser
java -classpath "weka.jar;sameer.jar" weka.gui.GUIChooser
Weka starts after these commands, and then i go to explorer, and open a data file cpu.arff. and then go to classifier and there i see that my algorithm doesnot appear in the classifiers list.
Please help me and tell me where am i doing it wrong.
regards,
Sunil
> Date: Sat, 6 Jun 2009 09:01:13 +1200
> Subject: Re: [Wekalist] how to include new algorithm in WEKA?
> From:
fracpete@...> To:
wekalist@...>
> > thanks i got the gpc.props file
> >
> > now i am stuck again--
> >
> > (1) the program which i want to add is ( abc.class)
> > now
> > how do i make the clusterer package? and
> > (2) where to paste that clusterer package?
>
> The package of your class ("abc") has to be added to the list of
> packages of the weka.clusterers.Clusterer property in the
> GenericPropertiesCreator.props file (as I've already posted earlier).
>
> The original property from that file looks like this:
>
> weka.clusterers.Clusterer=\
> weka.clusterers
>
> Assuming that your class "abc" is in the package "sunil.clusterers",
> the list should look like this then:
>
> weka.clusterers.Clusterer=\
> weka.clusterers,\
> sunil.clusterers
>
> 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
> Send posts to:
Wekalist@...> List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Videos Get the latest video streams on movies,
Try it!
_______________________________________________
Wekalist mailing list
Send posts to:
Wekalist@...
List info and subscription status:
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalistList etiquette:
http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html