Draft autoencoder script