data_base
❭ db_initializers
❭ prepare_ANN_batches
prepare_ANN_batches¶
Parse a simrun-initialized database for ANN batch preparation.
This module provides various methods to bin synapse actications, morphologies, and voltage traces. This binned data can be used as input data for training an artificial neural network (ANN).
Functions¶
|
Calculate the bin size and number of bins closest to the desired bin size goal. |
|
Find the bin index of a given value. |
Get the path to the Cell parameters file from a simrun-initialized database. |
|
|
Bin the morphology of a neuron from a Cell parameters file. |
|
Get the bin names from a dataframe describing the distance to soma of all sections. |
|
Get the distance to the soma for all bins in this section. |
|
Create an adjacency map with bin-specific resolution for a given section. |
|
Get all the neighboring bins from a |
|
Augment a Synapse activation dataframe with bin information. |
|
One-hot encode spike times to a binned time vector. |
|
Construct a time-binned list of inter-spike intervals from a list of spike times. |
|
Calculate the time since the last spike in ms for each element in a spike time pd.Series or pd.DataFrame. |
|
Calculate the time since the last spike in ms for each element in a spike time Array. |
|
One-hot encode spike times to a binned time vector. |
|
Load synapse weights from a simrun-initialized database |
|
Bin synapse activation times into temporal bins. |
|
Create a 4D array of synapse activation times. |
|
Save a batch of synapse activation times to a file. |
|
Get the time groups for binning voltage traces. |
|
Subsample a voltage trace pandas dataframe to 1ms bins based on the maximum depolarization. |
|
Subsample a voltage trace dask dataframe to 1ms bins based on the maximum depolarization. |
|
Convenience method to run a list of dask delayed objects incrementally. |