Added deterministic and refactored do_task_eval.py