tutorials:tutorial_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorials:tutorial_2 [2016/09/01 22:32] – [Tutorial 2: Balanced network] zenke | tutorials:tutorial_2 [2017/04/24 19:15] – Changes links to fzenke.net zenke | ||
---|---|---|---|
Line 6: | Line 6: | ||
The code of this example can be found here | The code of this example can be found here | ||
https:// | https:// | ||
+ | |||
+ | |||
===== Setting up neural populations ===== | ===== Setting up neural populations ===== | ||
Line 22: | Line 24: | ||
</ | </ | ||
- | The above code snipped initializes an excitatory population ('' | + | The above code snipped initializes an excitatory population ('' |
As before in [[Tutorial 1]] we define Poisson input as a separate population: | As before in [[Tutorial 1]] we define Poisson input as a separate population: | ||
Line 31: | Line 33: | ||
</ | </ | ||
- | ==== Connecting the network ==== | + | ===== Connecting the network |
Now let's connect these three populations. First the input: | Now let's connect these three populations. First the input: | ||
Line 51: | Line 53: | ||
Note that we made inhibitory connections stronger by a factor of '' | Note that we made inhibitory connections stronger by a factor of '' | ||
- | ==== Set up monitors ==== | + | ===== Set up monitors |
Let's record spikes from all neurons and the membrane potential from neuron 0 in the excitatory population. | Let's record spikes from all neurons and the membrane potential from neuron 0 in the excitatory population. | ||
Line 63: | Line 65: | ||
- | ==== Running the simulation ==== | + | ===== Running the simulation |
To run the simulation for 10 seconds we simply add the run command: | To run the simulation for 10 seconds we simply add the run command: | ||
Line 78: | Line 80: | ||
- | ===== Visualizing the spikes ===== | + | ====== Visualizing the spikes |
Running above code will generate the following files: | Running above code will generate the following files: | ||
Line 114: | Line 116: | ||
{{ : | {{ : | ||
- | For more sophisticated ways of writing patterns or synfire chain structures into a connectivity matrix, check out the documentation of [[manual: | + | For more sophisticated ways of writing patterns or synfire chain structures into a connectivity matrix, check out the documentation of [[manual: |
You can also always load a weight matrix from an external file which have generated using MATLAB or Python. Auryn supports a coordinate based [[http:// | You can also always load a weight matrix from an external file which have generated using MATLAB or Python. Auryn supports a coordinate based [[http:// | ||
tutorials/tutorial_2.txt · Last modified: 2018/02/28 17:58 by zenke