write confusion metrics to table