data_base
❭ db_initializers
❭ prepare_ANN_batches
❭ temporal_binning_augmented_sa
temporal_binning_augmented_sa¶
-
data_base.db_initializers.prepare_ANN_batches.temporal_binning_augmented_sa(sa_augmented, min_time, max_time, bin_size, use_weights=
False
)¶ Bin synapse activation times into temporal bins.
- Parameters:¶
sa_augmented (pd.DataFrame) – Augmented synapse activation dataframe
min_time (int) – Min time in ms
max_time (int) – Max time in ms
bin_size (int) – Size of the time bins
use_weights (bool, optional) – If True, weigh the synapse activation times with the corresponding synapse weights. Defaults to False.
- Returns:¶
A tuple containing the bin borders and the histogram of synapse activation times.
- Return type:¶
tuple