Added given_fraction parameter to cross validation method (to be
completed).