Getting k fold cross validation and rbf working