fixed constructor for denoising autoencoder