Fix RNG in cost test
MLP Trainer: Computes the derivatives of the cost in the MLPBaseTrainer