Skip to content

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

@Victordeleusse

Description

@Victordeleusse

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions