changes to log evidence calculation in util_infer.py