Validation curve calculation.
Plot validation curve to see which lambda value is the best.