metrics. function

Calculate metrics for model predictive performance evaluation