get_metrics function

Internal function for calculating model performance metrics