Fixed bug. Had put input into wrong variable
found bug in cv_predict function. Made note of it.