Optionally add entropy term to softmax cost.