image_output_1.png
import matplotlib.pyplot as plt
plt.figure(figsize=(12, 3))
plt.plot(X_train[:1].reshape(-1))
plt.figure(figsize=(6, 6))
plt.matshow(X_train[:1].reshape(28, 28), cmap=plt.get_cmap('binary'))
y_train[:1]