pick the median value in corse-to-fine cross validation