Path: blob/master/notebooks/book1/01/emnist_viz_jax.ipynb
1193 views
Kernel: Python 3
Please find an alternative PyTorch implementation of this notebook here: https://colab.research.google.com/github/probml/pyprobml/blob/master/notebooks/book1/01/emnist_viz_torch.ipynb
In [1]:
This is required for Bokeh to work in notebooks.
In [2]:
According to NIST,
The EMNIST dataset is a set of handwritten character digits derived from the NIST Special Database 19 and converted to a 28x28 pixel image format and dataset structure that directly matches the MNIST dataset. Further information on the dataset contents and conversion process can be found in the paper available at https://arxiv.org/abs/1702.05373v1.
Since we are going to work with JAX, let's transform the PyTorch Tensors to JAX DeviceArrays.
In [3]:
Out[3]:
Downloading https://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/gzip.zip to /root/data/EMNIST/raw/gzip.zip
0%| | 0/561753746 [00:00<?, ?it/s]
Extracting /root/data/EMNIST/raw/gzip.zip to /root/data/EMNIST/raw
Here are some examples from the dataset
In [4]:
Out[4]:
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
MIME type unknown not supported
MIME type unknown not supported
In [ ]: