Example procedure for evaluating the estimated model parameters gerenated by test_fit_neuron().
Parameters: |
|
---|
Warning
This function will not work unless test_fit_neuron() has already been run before.
Example procedure for estimating a LIF model for a single neuron.
Parameters: |
|
---|
Note
The output JSON files will contain a dictionary of parameter values. The output pickle file will contain a fit_neuron.optimize.neuron_base_obj.Neuron instance which can simulate the artificial neuron.
Tests the functionality of the models themselves, independent of fitting procedures.
This script demonstrates the simplest way to estimate a model from data, predict new voltage traces, and compare the predicted voltage traces with the true voltage traces.
X_list: list of current injection traces (each element in list is a numpy array) Y_list: list of voltage traces (each element in list is a numpy array) dt: time step between consecutive values in each current injection / voltage trace