hxtorch.spiking.transforms.encode

Define transformations for spiking input coding

Classes

CoordinatesToSpikes(seq_length, t_early, …)

Convert values between 0 and 1 to spikes in a given timeframe

PixelsToSpikeTimes([tau, threshold, t_max, …])

Encode image by spike trains

SpikeTimesToDense(bin_width, size)

Convert spike times to a dense matrix of zeros and ones

SpikeTimesToSparseTensor(bin_width, size)

Convert spike times to a dense matrix of zeros and ones