You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import tensorflow as tf
|
|
import os
|
|
mnist = tf.keras.datasets.mnist
|
|
from matplotlib import pyplot as plt
|
|
|
|
(x_train, y_train), (x_test, y_test) = mnist.load_data()
|
|
x_train, x_test = x_train/255.0, x_test/255.0
|
|
print(y_test)
|
|
|
|
plt.imshow(x_train[0], cmap="gray")
|
|
plt.show() |