:py:mod:`tonic.datasets.ntidigits18`
====================================

.. py:module:: tonic.datasets.ntidigits18


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   tonic.datasets.ntidigits18.NTIDIGITS18




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


   Bases: :py:obj:`tonic.dataset.Dataset`

   `N-TIDIGITS18 Dataset <https://docs.google.com/document/d/1Uxe7GsKKXcy6SlDUX4hoJVAC0-UkH-8kr5UXp0Ndi1M/edit?tab=t.0#heading=h.sbnu5gtazqjq/>`_
   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}
       }

   :param save_to: Location to save files to on disk. Will put files in an 'hsd' subfolder.
   :type save_to: string
   :param train: If True, uses training subset, otherwise testing subset.
   :type train: bool
   :param single_digits: 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'.
   :type single_digits: bool
   :param transform: A callable of transforms to apply to the data.
   :type transform: callable, optional
   :param target_transform: A callable of transforms to apply to the targets/labels.
   :type target_transform: callable, optional

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

   .. py:attribute:: base_url
      :value: 'https://www.dropbox.com/scl/fi/1x4lxt9yyw25sc3tez8oi/n-tidigits.hdf5?e=2&rlkey=w8gi5udvib2zqzosus...'

      

   .. py:attribute:: filename
      :value: 'n-tidigits.hdf5'

      

   .. py:attribute:: file_md5
      :value: '360a2d11e5429555c9197381cf6b58e0'

      

   .. py:attribute:: folder_name
      :value: ''

      

   .. py:attribute:: sensor_size
      :value: (64, 1, 1)

      

   .. py:attribute:: dtype

      

   .. py:attribute:: ordering

      

   .. py:attribute:: class_map

      

   .. py:method:: download() -> None

      Downloads from a given url, places into target folder and verifies the file hash.


   .. py:method:: __getitem__(index)


   .. py:method:: __len__()



