acc.metric.fun function

Accuracy metrics calculation