extractMetric.caretStack function

Extract accuracy metrics from a caretStack object