extractMetric function

Generic function to extract accuracy metrics from various model objects