Fixed some training calculations.

They were initially inaccurate.