Mostrar imágenes
Descripción
imgs, labels = next(train_batches)
def plotImages(images_arr):
fig, axes = plt.subplots(1,10,figsize=(20,20))
axes = axes.flatten()
for img, ax in zip( images_arr, axes):
ax.imshow(img)
ax.axis('off')
plt.tight_layout()
plt.show()
plotImages(imgs)
print(labels)
ID:(10378, 0)
Modelo tipo Sequential (numeros)
Descripción
model = Sequential([
Dense(units=16,input_shape=(1,),activation='relu'),
Dense(units=32,activation='relu'),
Dense(units=2,activation='softmax')
])
ID:(10377, 0)