mmetric function

Compute classification or regression error metrics.