Getting started with the CEM applied to MNIST
In this section, we will install the modules and the dataset. The program will also prepare the data for the CNN model.
Open the CEM.ipynb
program that we will use in this chapter.
We will begin by installing and importing the modules we need.
Installing Alibi and importing the modules
We will first install Alibi by trying to import Alibi:
# @title Install Alibi
try:
import alibi
except:
!pip install alibi
If Alibi is installed, the program will continue. However, when Colaboratory restarts, some libraries and variables are logs. In this case, the program will install Alibi.
We will now install the modules for the program.
Importing the modules and the dataset
In this section, we will import the necessary modules for this program. We will then import the data and display a sample.
Open the CEM.ipynb
program that we will use in this chapter.
We will first import the modules.