Generalization of the R routines and definition of the train and test sets.