# Load the MNIST dataset (x_train, y_train), (x_test, y_test) = mnist.load_data() # Normalize the pixel values to range [0, 1] x_train = x_train.astype('float32') / 255.0 x_test = x_test.astype('float32') / 255.0 # One-hot encode the labels y_train = to_categorical(y_train, 10) y_test = to_categorical(y_test, 10) # Add a channel dimension for Conv2D (for grayscale images) x_train = np.expand_dims(x_train, axis=-1) x_test = np.expand_dims(x_test, axis=-1) __ __