reverted np.nan to zero for nce metrics