Bug correction at training batch algorithms