This is one of the main functions. It perform the cross validation on ahm models to select the optimal setting of hyper parameter h
Useful links