NTIDIGITS18

Contents

NTIDIGITS18#

class tonic.datasets.NTIDIGITS18(save_to: str, train: bool = True, single_digits=False, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)[source]#

N-TIDIGITS18 Dataset Cochlea Spike Dataset.

@article{anumula2018feature,
  title={Feature representations for neuromorphic audio spike streams},
  author={Anumula, Jithendar and Neil, Daniel and Delbruck, Tobi and Liu, Shih-Chii},
  journal={Frontiers in neuroscience},
  volume={12},
  pages={23},
  year={2018},
  publisher={Frontiers Media SA}
}
Parameters:
  • save_to (string) – Location to save files to on disk. Will put files in an ‘hsd’ subfolder.

  • train (bool) – If True, uses training subset, otherwise testing subset.

  • single_digits (bool) – If True, only returns samples with single digits (o, 1, 2, 3, 4, 5, 6, 7, 8, 9, z), with class 0 for ‘o’ and 11 for ‘z’.

  • transform (callable, optional) – A callable of transforms to apply to the data.

  • target_transform (callable, optional) – A callable of transforms to apply to the targets/labels.

Returns:

A dataset object that can be indexed or iterated over. One sample returns a tuple of (events, targets).