Scripting


Simbrain neural networks can be customized using scripts.  Some useful scripts come pre-loaded and are described below. To invoke a script use the scripts menu in network window.

These are beanshell scripts specifically for a network. They can be edited in {Simbrain}/scripts/network.  After adding a new script in that direcory it shows up in network windows.

One specific use of Simbrain scripts is to create a custom update methods

Accessible Variables

The two Simbrain variables provided to you by a network script are networkPanel and network.

Pre-loaded Scripts

Some useful scripts include:

addLayeredNetwork: to add a standard feed-forward network.  You specify how many layers and how many neurons per layer in the dialog.

prunSynapses: to remove all synapses whose absolute value is below a threshold (by default  .5) that can be edited in the script.