Hoffman2:WEKA: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
Line 21: Line 21:


== Command Line ==
== Command Line ==
Calling any of the usual WEKA command line tools will work in submitted jobs so long as you properly source the WEKA jar file at: <br />
Calling any of the usual WEKA command line tools will work in submitted jobs so long as you properly reference the WEKA jar file at: <br />
<code><pre>/u/home/FMRI/apps/weka/current/weka.jar</pre></code>
<code><pre>/u/home/FMRI/apps/weka/current/weka.jar</pre></code>
A sample command would be<br />
<code><pre>$ java -Xmx2g -cp /u/home/FMRI/apps/weka/current/weka.jar weka.classifiers.functions.SMO -o -T awesome_train_file.arff -t awesome_test_file.arff</pre></code>
where
;-Xmx2g
:calls for 2GB of memory
;-o
:suppresses the model ouput
;-T awesome_train_file.arff
:specifies the training file
;-t awesome_test_file.arff
:is an optional testing file for the model

Revision as of 23:33, 9 August 2011

GUI

To run the WEKA GUI from Hoffman2

  1. Make sure that you enabled X11 forwarding by including the -Y flag in your SSH command:
     $ ssh -Y joebruin@hoffman2.idre.ucla.edu 
  2. Request an interactive node to run on with the following command:
     $ qrsh -l i 
  3. Wait for the new node to appear. Your prompt will change from:
     [joebruin@login4 ~] $ 

    to something like

     [joebruin@n1234 ~] $ 
  4. Run the command:
     $ java -jar /u/home/FMRI/apps/weka/current/weka.jar 

    And the current version of WEKA should start up and the GUI will appear.


Command Line

Calling any of the usual WEKA command line tools will work in submitted jobs so long as you properly reference the WEKA jar file at:

/u/home/FMRI/apps/weka/current/weka.jar

A sample command would be

$ java -Xmx2g -cp /u/home/FMRI/apps/weka/current/weka.jar weka.classifiers.functions.SMO -o -T awesome_train_file.arff -t awesome_test_file.arff

where

-Xmx2g
calls for 2GB of memory
-o
suppresses the model ouput
-T awesome_train_file.arff
specifies the training file
-t awesome_test_file.arff
is an optional testing file for the model