Nogui run
From Emergent
No GUI Run (Background/Batch Run)
To run a project without the gui in the background (e.g., to submit as a job on a cluster, or just on your workstation so it runs faster and out of your face), you just need a few key arguments and a startup program or startup script that controls the entire process.
> emergent -nogui -ni -p my_project.proj [-f my_startup_script.css] [other optional args here...]
-
-nogui-- specifies running without a gui -
-ni-- non-interactive: do not start the css console -
-p my_project.proj-- loads the project of given name -
-f my_startup_script.css-- optionally loads a startup script that takes control (NOTE: it is usually better to do a startup program within the project instead of a separate script -- this is a new feature as of 4.0.7) -
[optional args here...]-- the startup script will typically specify various additional arguments (parameters) that you can pass to further configure the run.
Example Run
To try it out for yourself, copy the following files from the emergent system directory (typically /usr/local/share/emergent/ -- assumed below) into your own user directory somewhere. Here is how you do it at the unix command prompt, assuming you're in an appropriate user directory:
> cp /usr/local/share/Emergent/test/leabra_ra.proj .
Then do this:
emergent -nogui -ni -p leabra_ra.proj epochs=10 batches=10
It should say something like this:
Network: LeabraNetwork_0 auto building Running startup program: LeabraStartup LeabraNetwork_0 Weights Initialized Loaded project: <yourpath>/leabra_ra.proj LeabraNetwork_0 Weights Initialized Set max_epoch in program: LeabraTrain to: 10 Set max_batch in program: LeabraBatch to: 10 Running: LeabraBatch LeabraNetwork_0 Weights Initialized ...
And you should find the resulting leabra_ra.epc.dat file in your directory. To look at these files, you can use the pdptail command (available from: http://psych.colorado.edu/~oreilly/PDP++/pdptail.html):
pdptail leabra_ra.epc.dat
