hxtorch.spiking.utils.from_nir_data.EventData
-
class
hxtorch.spiking.utils.from_nir_data.EventData(idx: numpy.ndarray, time: numpy.ndarray, n_neurons: int, t_max: float) Bases:
objectEvent-based data represented as a list of spike indices and spike times.
- Parameters
idx – Array of shape (n_samples, n_events) with neuron indices. If there is no event, the index is -1.
time – Array of shape (n_samples, n_events) with event times. If there is no event, the time is np.inf.
n_neurons – Total number of neurons in the layer.
t_max – Maximum time of the recording.
-
__init__(idx: numpy.ndarray, time: numpy.ndarray, n_neurons: int, t_max: float) Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(idx, time, n_neurons, t_max)Initialize self.
to_time_gridded(dt)Attributes
-
property
shape
-
to_time_gridded(dt)