calculation of inner_score for each data set.