init metric calculation for regression data