Skip to content

can't set evaluation_strategy to "epoch" #7873

@yuvalkirstain

Description

@yuvalkirstain

Environment info

  • transformers version: 3.3.1

Who can help

@sgugger

Information

Seems like we can't use the evaluation_strategy=epoch option. The default value of evaluate_during_training is boolean (False). In transformers/training_args.py, post_init function, there is a check - if self.evaluate_during_training is not None: (line 326). If I'm not mistaken, it will always result in True. I think that if you change the line into if self.evaluate_during_training: the problem will be solved.

Thank you so much for your awesome work :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions