GeNN
3.3.0
GPU enhanced Neuronal Networks (GeNN)
|
Classes | |
class | Variable |
Class holding information about GeNN variables. More... | |
Functions | |
def | prepare_model (model, param_space, var_space, pre_var_space=None, post_var_space=None, model_family=None) |
Prepare a model by checking its validity and extracting information about variables and parameters. More... | |
def | prepare_snippet (snippet, param_space, snippet_family) |
Prepare a snippet by checking its validity and extracting information about parameters. More... | |
def | is_model_valid (model, model_family) |
Check whether the model is valid, i.e is native or derived from model_family.Custom. More... | |
def | param_space_to_vals (model, param_space) |
Convert a param_space dict to ParamValues. More... | |
def | param_space_to_val_vec (model, param_space) |
Convert a param_space dict to a std::vector<double> More... | |
def | var_space_to_vals (model, var_space) |
Convert a var_space dict to VarValues. More... | |
def | pre_var_space_to_vals (model, var_space) |
Convert a var_space dict to PreVarValues. More... | |
def | post_var_space_to_vals (model, var_space) |
Convert a var_space dict to PostVarValues. More... | |
def pygenn.model_preprocessor.is_model_valid | ( | model, | |
model_family | |||
) |
Check whether the model is valid, i.e is native or derived from model_family.Custom.
model | string or instance of model_family.Custom |
model_family | model family (NeuronModels, WeightUpdateModels or PostsynapticModels) to which model should belong to |
Raises ValueError if model is not valid (i.e. is not custom and is not natively available)
def pygenn.model_preprocessor.param_space_to_val_vec | ( | model, | |
param_space | |||
) |
Convert a param_space dict to a std::vector<double>
model | instance of the model |
param_space | dict with parameters |
def pygenn.model_preprocessor.param_space_to_vals | ( | model, | |
param_space | |||
) |
Convert a param_space dict to ParamValues.
model | instance of the model |
param_space | dict with parameters |
def pygenn.model_preprocessor.post_var_space_to_vals | ( | model, | |
var_space | |||
) |
Convert a var_space dict to PostVarValues.
model | instance of the weight update model |
var_space | dict with Variables |
def pygenn.model_preprocessor.pre_var_space_to_vals | ( | model, | |
var_space | |||
) |
Convert a var_space dict to PreVarValues.
model | instance of the weight update model |
var_space | dict with Variables |
def pygenn.model_preprocessor.prepare_model | ( | model, | |
param_space, | |||
var_space, | |||
pre_var_space = None , |
|||
post_var_space = None , |
|||
model_family = None |
|||
) |
Prepare a model by checking its validity and extracting information about variables and parameters.
model | string or instance of a class derived from |
model_family.Custom | |
param_space | dict with model parameters |
var_space | dict with model variables |
pre_var_space | optional dict with (weight update) model presynaptic variables |
post_var_space | optional dict with (weight update) model postsynaptic variables |
model_family | genn_wrapper.NeuronModels or genn_wrapper.WeightUpdateModels or |
genn_wrapper.CurrentSourceModels | |
Return | tuple consisting of 0. model instance,
|
def pygenn.model_preprocessor.prepare_snippet | ( | snippet, | |
param_space, | |||
snippet_family | |||
) |
Prepare a snippet by checking its validity and extracting information about parameters.
snippet | string or instance of a class derived from |
snippet_family.Custom | |
param_space | dict with model parameters |
snippet_family | genn_wrapper.InitVarSnippet or |
genn_wrapper.InitSparseConnectivitySnippet | |
Return | tuple consisting of 0. snippet instance,
|
def pygenn.model_preprocessor.var_space_to_vals | ( | model, | |
var_space | |||
) |
Convert a var_space dict to VarValues.
model | instance of the model |
var_space | dict with Variables |