Turn on batch mode when learning from a log file