-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
# Ryan Thorpe <[email protected]> | ||
# Mainak Jas <[email protected]> | ||
|
||
############################################################################# | ||
############################################################################### | ||
# Let us import hnn_core. | ||
|
||
import hnn_core | ||
|
@@ -23,7 +23,7 @@ | |
|
||
# The number of cores may need modifying depending on your current machine. | ||
n_jobs = 10 | ||
########################################################################### | ||
############################################################################### | ||
|
||
|
||
def set_params(param_values, net=None): | ||
|
@@ -57,8 +57,8 @@ def set_params(param_values, net=None): | |
weights_ampa=weights_ampa, | ||
synaptic_delays=synaptic_delays) | ||
|
||
########################################################################### | ||
|
||
############################################################################### | ||
# Define a parameter grid for the batch simulation. | ||
|
||
param_grid = { | ||
'weight_basket': np.logspace(-4 - 1, 5), | ||
|
@@ -67,6 +67,9 @@ def set_params(param_values, net=None): | |
'sigma': np.linspace(1, 20, 5) | ||
} | ||
|
||
############################################################################### | ||
# Run the batch simulation and collect the results. | ||
|
||
batch_simulation = BatchSimulate(set_params=set_params) | ||
simulation_results = batch_simulation.run(param_grid, | ||
n_jobs=n_jobs, | ||
|