First version of training a CRBM