July 2019
Intermediate to advanced
512 pages
19h 39m
English
Now we will learn how to implement Capsule networks in TensorFlow. We will use our favorite MNIST dataset to learn how a Capsule network recognizes the handwritten image.
Import the required libraries:
import warningswarnings.filterwarnings('ignore')import numpy as npimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datatf.logging.set_verbosity(tf.logging.ERROR)
Load the MNIST dataset:
mnist = input_data.read_data_sets("data/mnist",one_hot=True)
Read now
Unlock full access