emit cost afet each training iteration