executei a celula de codigo como na aula:
modelo = keras.Sequential([
keras.layers.Flatten(input_shape=(28, 28)),
keras.layers.Dense(256, activation=tensorflow.nn.relu),
keras.layers.Dropout(0.2),
keras.layers.Dense(128, activation=tensorflow.nn.relu),
keras.layers.Dense(64, activation=tensorflow.nn.relu),
keras.layers.Dense(10, activation=tensorflow.nn.softmax)])
adam = keras.optimizers.Adam(learning_rate=0.002)
early_stopping = [keras.callbacks.EarlyStopping(monitor='val_loss'),
keras.callbacks.ModelCheckpoint(filepath='melhor_modelo.hd5',
monitor='val_loss',
save_best_only=True)]
modelo.compile(optimizer=adam,
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
historico = modelo.fit(imagens_treino, identificacoes_treino, epochs=5,
batch_size=480, validation_split=0.2,
callbacks=early_stopping)
E recebi na saída a seguinte mensagem:
WARNING:absl:Found untraced functions such as _update_step_xla while saving (showing 1 of 1). These functions will not be directly callable after loading