Building Autoencoders in Keras
blog.keras.io › building-autoencoders-in-kerasMay 14, 2016 · Let's try this: autoencoder = keras.Model(input_img, decoded) autoencoder.compile(optimizer='adam', loss='binary_crossentropy') autoencoder.fit(x_train, x_train, epochs=100, batch_size=256, shuffle=True, validation_data=(x_test, x_test)) After 100 epochs, it reaches a train and validation loss of ~0.08, a bit better than our previous models.