Hoffman2:WEKA: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== GUI ==
==WEKA==
=== GUI ===
To run the WEKA GUI from Hoffman2
To run the WEKA GUI from Hoffman2
<ol>
<ol>
Line 20: 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 reference 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>
Line 28: Line 29:
;-Xmx2g
;-Xmx2g
:calls for 2GB of memory
:calls for 2GB of memory
:-Xmx256m calls for 256MB of memory
;-o
;-o
:suppresses the model ouput
:suppresses the model output
;-T awesome_train_file.arff
;-T awesome_train_file.arff
:specifies the training file
:specifies the training file
;-t awesome_test_file.arff
;-t awesome_test_file.arff
:is an optional testing file for the model
:is an optional testing file for the model
:if this option is not provided, 10 fold cross validation will be done
== Massive Online Analysis (MOA) GUI==
===GUI===
To run the MOA GUI from Hoffman2
<ol>
<li>Make sure that you enabled X11 forwarding by including the -Y flag in your SSH command: <br />
<code><pre> $ ssh -Y joebruin@hoffman2.idre.ucla.edu </pre></code>
</li>
<li> Request an [http://www.ats.ucla.edu/clusters/hoffman2/computing/sge_qrsh.htm interactive node] to run on with the following command: <br />
<code><pre> $ qrsh -l i </pre></code>
</li>
<li> Wait for the new node to appear.  Your prompt will change from: <br />
<code><pre> [joebruin@login4 ~] $ </pre></code>
to something like <br />
<code><pre> [joebruin@n1234 ~] $ </pre></code>
</li>
<li>Run the command:
<code><pre> $ moa.sh </pre></code>
And the current version of MOA should start up and the GUI will appear.
</li>
</ol>
===Command Line===
I'm not familiar with this yet, soon to be added.

Revision as of 01:22, 10 August 2011

WEKA

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
-Xmx256m calls for 256MB of memory
-o
suppresses the model output
-T awesome_train_file.arff
specifies the training file
-t awesome_test_file.arff
is an optional testing file for the model
if this option is not provided, 10 fold cross validation will be done


Massive Online Analysis (MOA) GUI

GUI

To run the MOA 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:
     $ moa.sh 

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


Command Line

I'm not familiar with this yet, soon to be added.