Second version of training a CRBM