creating function reconstruction_error with a nice documentation and temporarily changing test_rbm.py to use previously trained parameters