Conforme o código abaixo apresenta o seguinte errro:
TypeError Traceback (most recent call last) in () ----> 1 plt.imshow(y_treino[1])
5 frames /usr/local/lib/python3.6/dist-packages/matplotlib/image.py in set_data(self, A) 697 or self.A.ndim == 3 and self.A.shape[-1] in [3, 4]): 698 raise TypeError("Invalid shape {} for image data" --> 699 .format(self.A.shape)) 700 701 if self.A.ndim == 3:
TypeError: Invalid shape () for image data
import tensorflow
import matplotlib.pyplot as plt
from tensorflow import keras
dataset = keras.datasets.fashion_mnist
((x_treino, y_treino),(x_teste, y_teste))=dataset.load_data()
x_treino.shape
x_teste.shape
y_treino.shape
y_teste.shape
plt.imshow(y_treino[1])