Trainer.train_epoch or Trainer.em_step should call Trainer.eval_free_energies to evaluate the free energies at the end of the epoch if the option is enabled. Currently, the free energy value returned if the option is enabled is always 0.
[pointed out by @eguiraud]