Corrections

Put the optimisation of training function before 10 cross
(instead of within)