« Return to Thread: Question regarding load the trained model and test on original dataset

Re: how to include new algorithm in WEKA?

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View in Thread

>>>> hi , in the steps mentioned above-
>   ---- place a GenericPropertiesCreator.props file in your
> home directory
>
> (1) how do i place this file in my home directory
>  as i was unable to locate the generic properties
> creator.props file ?????????? (steps please)

Either extract it from the weka.jar or the weka-src.jar (in
sub-directory "weka/gui"). NB: Jar files are just zip files. I.e., use
any archive manager that can handle zip files, e.g., 7-zip.

> (how to locate ??)
> (how to place??)
>
> (2) i have tried the following command to get
> the file -:
>
> java weka.gui.GenericPropertiesCreator \
>
> weka/gui/GenericPropertiesCreator.props \
>
> %userprofile%/GenericObjectEditor.props

As the "GenericObjectEditor" wiki article mentions, it is assumed that
the current path that you are currently on is just above the root
package of, i.e.,  "weka". That implies that the class or source files
are unzipped. Otherwise, the path "weka/gui/" doesn't make a lot of
sense.

This procedure is *not* necessary, as you want to use dynamic class
discovery. Just set the property "UseDynamic" in the
GenericPropertiesCreator.props file that you've placed in your home
directory to true.

> -- what should i type in %userprofile% .. i am using xp

%USERPROFILE% is the environment variable pointing to your home
directory (on Win2000, WinXP and WinVista). Nothing to type in. Once
again, *not* necessary since you want dynamic class discovery.

If you want to know what directory your home directory is, just run
the following command in a command prompt:
  echo %USERPROFILE%

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

 « Return to Thread: Question regarding load the trained model and test on original dataset