The dataset can be downloaded directly as a Python dict
serialised using pickle
here (6.84 GB).
The pickle file can be loaded in the usual way:
import pickle
with open('megnist.pickle', 'rb') as f:
megnist = pickle.load(f)
The dictionary megnist
has the following keys: X_train
, y_train
, X_val
, y_val
, X_test
, y_test
.
megnist['X_train']
is a 3-dimensional numpy array of floats with shape (10,000 examples, 306 channels, 250 time steps). megnist['y_train']
is a 1-dimensional numpy array of integers (0, ..., 9) with 10,000 examples.
The validation and test splits have the same dimensions, except for the number of examples (1,000 examples).
Dimensionality reduced versions of the dataset can be downloaded below:
- 16 channels (366.3 MB).
- 32 channels (732.5 MB).
- 64 channels (1.43 GB).
- 128 channels (2.86 GB).