Formats response variable based on the ml-type variable passed by the config file. For regression analyses the response variable will be explicitly transformed to type numeric. For Classification experiments the response variable will be explicitly transformed to a factor. Time-to-event models are to be implemented in the near future.
format_y(y, ml.type)
a transformed version of the response variable y.
vector of response varibale.
type of experiment (chracater).
Kolja Becker