The training function takes as input:
x The feature matrix (dim n x p)
y The response matrix (dim n x q)
The predict function, instead, takes as input:
out The output of a previous call to train.fun
newx The new features to evaluate (i.e. an n0 x p matrix)