A set of routines for training regression routines