primeqa.mrc.metrics.tydi_f1.eval_utils.safe_average#

primeqa.mrc.metrics.tydi_f1.eval_utils.safe_average(elements)#

Computes average elements, but returns 0 if elements is empty.