Perform training with SCG an LM functions.