Make functions from Classifier more independant to prepare cross validation