class Canary(object):
def __init__(self):
canary_dir = download(DATA_DIR)
canary_meta_data = os.path.join(canary_dir, 'model.opt')
with open(canary_meta_data) as f:
opt = json.load(f)
**opt['early_stopping'] = False # 'never' doesn t work neither**
opt['skip_generation'] = False
opt['model_file'] = os.path.join(canary_dir, 'model')
self.agent = create_agent(opt)