missing )
freeenergy calcualtions
put early stopping in function
early stopping in function
remove surplus end
fix typo
rbmtrain print error
examples