Restricted Boltzmann machine and Autoencoders tests