Cost function shaping of the output error criterion. (February 2017)