Question: ( 2 pts ) In the python notebook file python _ play.ipynb, consider the code in the following cell:fig, axes = plt . subplots (

(2 pts)
In the python notebook file python_play.ipynb, consider the code in the following cell:fig, axes = plt.subplots(2,5, figsize=(10,5))
for i, ax in enumerate(axes.flat):ax.set_title(f"Label: {y[i]}")
plt.tight_layout()
plt.show()This code basically plotted the images from the first 10 handwritten digits of the MNIST dataset.
That is, if we define each of the 70,000 rows in the dataset by the column x(indicating the image
itself) and the column y(indicating the label for that image) then basically this code above serves
to show us the following pair of image/labels: (X[0],y[0]),(X[1],y[1]),(X[2],y[2]),(X[3],y[3]),
(X[4],y[4]),(X[5],y[5]),(X[6],y[6]),(X[7],y[7]),(X[8],y[8]),(X[9],y[9]).
Your task is to now modify this code cell such that the output will now show only the following
pair of image/labels from the dataset: (X[69999],y[69999]),(X[69998],y[69998]).
Your modified code must have the minimum number of alterations!
 (2 pts) In the python notebook file python_play.ipynb, consider the code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!