WEKA?:
Waka is a collection of machine learning algorithms for solving real-world data mining problems. It is written in Java and runs on almost every platform. You can access the WEKA class library from your own Java program, and implement new machine learning algorithms.
schemes in WEKA:
There are three major implemented schemes in WEKA--
(1) Implemented schemes for classification
(2) Implemented schemes for numeric prediction
(3) Implemented "meta-schemes"
WEKA also contains a large variety of tools that can be used for pre-processing datasets, so that you can focus on your algorithm without considering too much details as reading the data from files, implementing filtering algorithm and providing code to evaluate the results.
How to install and run WEKA on CS account?:
1) Log into your CS account.
2) Create a directory called weka using:
> mkdir weka
> cd weka
3) Create a symbolic link to our installed weka pack:
> ln -s /home/course/cs573x/weka-3-4/weka.jar
4) You are able to run weka now:
> java -jar weka.jar
*note: this will only work on Linux or Solaris workstations, as this will run GUI version of WEKA
5) Please make the following two links to enable you to access the source code of weka and some sample datasets.
> ln -s /home/course/cs573x/weka-3-4/weka
> ln -s /home/course/cs573x/weka-3-4/data
The following step is to set the CLASSPATH environment variable prior to use the command line. You need to indicate the location of the weka.jar file.
1) For sh, ksh and bash users:
Please add "export CLASSPATH=/home/course/cs573x/weka-3-4/weka.jar:$CLASSPATH" into your shell configuration profile.
2) For csh and tcsh users:
Please add "setenv CLASSPATH /home/course/cs573x/weka-3-4/weka.jar" into your shell configuration profile.
3) To test if it is set correctly:
Type "java weka.classifiers.trees.j48.J48 " (note the change from previous versions, in case you are familiar with any), it should display a list of all learning options for J48. If it displays an exception error message, then you will check if you set the environment variable correctly. Please make sure that you also set the correct path to Java, so that the system can locate and run Java.
Now, the installation is done! You can run WEKA either in command line or in graphic user interface. Remember only in Linux or a Solaris workstation can you run GUI, telnet won't work.
No comments:
Post a Comment