Skip to content
Snippets Groups Projects
Commit 294f9dd5 authored by Gaspard Goupy's avatar Gaspard Goupy
Browse files

Edit dataset.py

parent 5d9a06d2
Branches master
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import numpy as np
# To represent a list of spikes (sparse representation)
DATA_TYPE = [('indices', np.int16), ('timestamps', np.float32)]
DATA_TYPE = [('indices', np.int32), ('timestamps', np.float32)]
# Iterator for SpikingDataset class
......@@ -70,7 +70,7 @@ class SpikingDataset:
dataset.data.append(sample)
# Map numpy labels to numpy array of integers ranging from 0 to N
numpy_labels = np.searchsorted(np.unique(numpy_labels), numpy_labels).astype(np.int16)
numpy_labels = np.searchsorted(np.unique(numpy_labels), numpy_labels).astype(np.int32)
dataset.labels = numpy_labels
dataset.max_time = max_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment