adapt autoencoder vectorization