Imported from https://github.com/dwright37/phylogenetic-autoencoder