added ability to customize deep autoencoder objective function on output