torch_brain.utils#
Pools values that share the same timestamp using mean or mode operations. |
|
Sets random seed for reproducibility. |
|
Creates a sequence of latent tokens. |
|
Creates for each unit a start and end token. |
|
Determine weights for timestamps based on which intervals they fall within. |
|
Check if timestamps are in any of the intervals in the Interval object. |
|
Adds a string prefix to each element of a numpy string array. |
|
Bins spikes into time bins of size bin_size. |