prosocial-dialog icon indicating copy to clipboard operation
prosocial-dialog copied to clipboard

ValueError: 'early_stopping' must be a boolean or 'never', but is None.

Open Victordeleusse opened this issue 2 months ago • 0 comments

This error happened even after implementation of :

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)

Victordeleusse avatar Apr 28 '24 16:04 Victordeleusse