metric functions now take neural network & training result