tonic.datasets.ncaltech101#

Module Contents#

Classes#

NCALTECH101

N-CALTECH101

class tonic.datasets.ncaltech101.NCALTECH101(save_to: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None)[source]#

Bases: tonic.dataset.Dataset

N-CALTECH101

Events have (xytp) ordering.

@article{orchard2015converting,
  title={Converting static image datasets to spiking neuromorphic datasets using saccades},
  author={Orchard, Garrick and Jayawant, Ajinkya and Cohen, Gregory K and Thakor, Nitish},
  journal={Frontiers in neuroscience},
  volume={9},
  pages={437},
  year={2015},
  publisher={Frontiers}
}
Parameters:
  • save_to (string) – Location to save files to on disk.

  • 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.

  • transforms (callable, optional) – A callable of transforms that is applied to both data and labels at the same time.

url = 'https://data.mendeley.com/public-files/datasets/cy6cvx3ryv/files/36b5c52a-b49d-4853-addb-a836a888...'#
filename = 'N-Caltech101-archive.zip'#
file_md5 = '66201824eabb0239c7ab992480b50ba3'#
data_filename = 'Caltech101.zip'#
folder_name = 'Caltech101'#
sensor_size#
dtype#
ordering#
__getitem__(index)[source]#
Returns:

a tuple of (events, target) where target is the index of the target class.

__len__()[source]#