qualia_plugin_snn.preprocessing package
Submodules
Module contents
Qualia-Plugin-SNN preprocessing package contains preprocessing modules adapted for or dedicated to Spiking Neural Networks.
- class qualia_plugin_snn.preprocessing.Split2TimeSteps[source]
Bases:
Preprocessing
[RawDataModel
,RawDataModel
]Preprocessing module to split 1D input dataset into multiple timesteps.
- __init__(chunks: int) None [source]
Construct
qualia_plugin_snn.preprocessing.Split2TimeSteps.Split2TimeSteps
.- Parameters:
chunks (int) – Number of chunks to split the data into
- Return type:
None
- __call__(datamodel: RawDataModel) RawDataModel [source]
Split the given
qualia_core.datamodel.RawDataModel.RawDataModel
into multiple timesteps.Input data should be 1D (+ channel) with [N, S, C] order (channels_last). Output data has [N, T, S // T, C] dimensions Extra data that do not fit in a chunk is truncated.
- Parameters:
datamodel (RawDataModel) – The input dataset
- Returns:
The dataset with additional timestep dimension
- Return type: