Finished 5 fold CV and calculation of loss function