Estimates whether this is a regression or classification problem by looking at the labels. If all labels are only -1 and 1 a classification problem is assumed, otherwise a regression problem. If the argument 'regression' is TRUE, the function always returns TRUE.
label vector for which the kind of problem should be estimated
TRUE, if this is a regression problem or the argument
regression was TRUE, otherwise FALSE
Jan Saputra Mueller
1 2 3 4 5 6