Calculate feed-forward NN cost without regularization.