Introduced scoring function for model selection