optionally tracking cost function in neural net training