Add cost function on error output during the iterations of the feature selection algorithm.