"**Scaling factor** (scale_down_to) is the parameter which defines the the ratio of the full scale multi-area model being down-scaled to a model with fewer neurons and indegrees so as to be simulated on machines with lower computational ability and the simulation results can be obtained within relative shorter period of time.<br> <br> \n",
"Neurons and indegrees are both scaled down to 0.5%, where the model can usually be simulated on a local machine.<br> **Warning**: This will not yield reasonable dynamical results from the network and is only meant to demonstrate the simulation workflow.**"
]
...
...
@@ -140,41 +172,13 @@
"scale_down_to = 0.005 # Change it to 1. for running the fullscale network"
]
},
{
"cell_type": "markdown",
"id": "d53f1eab",
"metadata": {},
"source": [
"### 2. Model, simulation and theory parameters"
]
},
{
"cell_type": "markdown",
"id": "e779c727",
"metadata": {},
"source": [
"The parameters fall into 3 categories: Model parameters, Simulation parameters, Theory parameters.<br>\n",
"\n",
"**Model parameters**<br>\n",
"Model paramters are the most important among all the paramters, it directly affect the model itself and thus have a great impact on the simulation results. Model paramters define the connection, input, neuron, and network charateristics of the model.\n",
"* Connection paramters\n",
"* Input parameters\n",
"* Neuron parameters\n",
"* Network parameters<br>\n",
"\n",
"**Simualation parameters**<br>\n",
"Simulation parameters define the paramters that influence the process of simulation, inlcuding the simulation time, the number of processes and theads used to run the simulation.<br>\n",
"\n",
"**Theory parameters**<br>\n",
"Theory parameters defines ..."
]
},
{
"cell_type": "markdown",
"id": "14bac1ce-4ba0-47ec-84b2-9d3c72bc96ec",
"metadata": {},
"source": [
"#### 2.1 Model parameters"
"#### 2. Model parameters <a class=\"anchor\" id=\"section_4.2\"></a>\n",
"Model paramters are most important among all the paramters, it directly affect the model itself and thus have a great impact on the simulation results. Model paramters define the connection, input, neuron, and network charateristics of the model, and therefore fall into four categories: **Connection paramters**, **Input paramters**, **Neuron paramters**, and **Network paramters**."
"Simulation parameters define the paramters that influence the process of simulation, inlcuding the simulation time, the number of processes and theads used to run the simulation.<br>"
]
},
{
...
...
@@ -354,7 +359,8 @@
"id": "79596d77-c105-45d0-9a57-2d15e31f1189",
"metadata": {},
"source": [
"### 2.3. Theory paramters (theory_params)"
"#### 4. Theory paramters (theory_params) <a class=\"anchor\" id=\"section_4.4\"></a>\n",
"Theory parameters defines ..."
]
},
{
...
...
@@ -390,7 +396,7 @@
"id": "de4a6703",
"metadata": {},
"source": [
"## Instantiate a multi-area model and analyse"
"### Instantiate a multi-area model and analyse <a class=\"anchor\" id=\"section_5\"></a>"
]
},
{
...
...
@@ -398,7 +404,7 @@
"id": "1fd58841",
"metadata": {},
"source": [
"### 1. Insantiate a multi-area model "
"#### 1. Insantiate a multi-area model <a class=\"anchor\" id=\"section_5.1\"></a>"
]
},
{
...
...
@@ -419,7 +425,7 @@
"id": "91649c30",
"metadata": {},
"source": [
"### 2. Predict firing rates from theory"
"#### 2. Predict firing rates from theory <a class=\"anchor\" id=\"section_5.2\"></a>"
**Scaling factor** (scale_down_to) is the parameter which defines the the ratio of the full scale multi-area model being down-scaled to a model with fewer neurons and indegrees so as to be simulated on machines with lower computational ability and the simulation results can be obtained within relative shorter period of time.<br><br>
Neurons and indegrees are both scaled down to 0.5%, where the model can usually be simulated on a local machine.<br>**Warning**: This will not yield reasonable dynamical results from the network and is only meant to demonstrate the simulation workflow.**
scale_down_to=0.005# Change it to 1. for running the fullscale network
```
%% Cell type:markdown id:d53f1eab tags:
### 2. Model, simulation and theory parameters
%% Cell type:markdown id:e779c727 tags:
The parameters fall into 3 categories: Model parameters, Simulation parameters, Theory parameters.<br>
**Model parameters**<br>
Model paramters are the most important among all the paramters, it directly affect the model itself and thus have a great impact on the simulation results. Model paramters define the connection, input, neuron, and network charateristics of the model.
* Connection paramters
* Input parameters
* Neuron parameters
* Network parameters<br>
**Simualation parameters**<br>
Simulation parameters define the paramters that influence the process of simulation, inlcuding the simulation time, the number of processes and theads used to run the simulation.<br>
#### 2. Model parameters <a class="anchor" id="section_4.2"></a>
Model paramters are most important among all the paramters, it directly affect the model itself and thus have a great impact on the simulation results. Model paramters define the connection, input, neuron, and network charateristics of the model, and therefore fall into four categories: **Connection paramters**, **Input paramters**, **Neuron paramters**, and **Network paramters**.
Simulation parameters define the paramters that influence the process of simulation, inlcuding the simulation time, the number of processes and theads used to run the simulation.<br>
The connectivity and neuron numbers are stored in the attributes of the model class. Neuron numbers are stored in `M.N` as a dictionary (and in `M.N_vec` as an array), indegrees in `M.K` as a dictionary (and in `M.K_matrix` as an array). Number of synapses can also be access via `M.synapses` (and in `M.syn_matrix` as an array).
The following instructions will work when the `simulate` parameter is set to `True` during the creation of the MultiAreaModel object, and the `M.simulation.simulate()` method is executed.
%% Cell type:code id:dc3b1820 tags:
``` python
# Uncomment the lines in this code cell below to test if the number of synapses created by NEST matches the expected values
# """
# Test if the correct number of synapses has been created.
# syn = M.synapses[target_area.name][target_pop][source_area.name][source_pop]
# assert(len(created_syn) == int(syn))
```
%% Cell type:markdown id:57401110 tags:
To obtain the connections information, you can extract the lists of connected sources and targets. Moreover, you can access additional synaptic details, such as synaptic weights and delays.
You can determine the area and subpopulation to which the neuron ID ranges belong by referring to the file `network_gids.txt`, which is automatically generated during network creation.