Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 2 pts ) In the python notebook file python _ play.ipynb, consider the code in the following cell:fig, axes = plt . subplots (
pts
In the python notebook file pythonplay.ipynb, consider the code in the following cell:fig, axes pltsubplots figsize
for i ax in enumerateaxesflat:axsettitlefLabel: yi
plttightlayout
pltshowThis code basically plotted the images from the first handwritten digits of the MNIST dataset.
That is if we define each of the rows in the dataset by the column indicating the image
itself and the column yindicating the label for that image then basically this code above serves
to show us the following pair of imagelabels: XyXyXyXy
XyXyXyXyXyXy
Your task is to now modify this code cell such that the output will now show only the following
pair of imagelabels from the dataset: XyXy
Your modified code must have the minimum number of alterations!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started