get_error_triphasic function

Evaluate error metric between data and model prediction