started trying to implement closed form cross validation errors