setfit
                                
                                
                                
                                    setfit copied to clipboard
                            
                            
                            
                        AttributeError: 'TrainingArguments' object has no attribute 'eval_strategy'
Edit: I just saw there are other issues related to this: #535, #528, #512 and a PR #538
When running training as in the example in the README, I get the following error:
File "path_to_my_project/my_folder/my_script.py", line 81, in 
According to the release notes for version 4.41.0 of the transformers library (https://github.com/huggingface/transformers/releases/tag/v4.41.0), the variable "eval_strategy" is renamed to "evaluation_strategy":
I'm copying the paragraph:
- 🚨🚨🚨Deprecate evaluation_strategy to eval_strategy🚨🚨🚨 by @muellerzr in https://github.com/huggingface/transformers/pull/30190
 
In my case, the error disappears if I add the following line before line 653 of setfit/src/setfit/trainer.py:
args.eval_strategy = args.evaluation_strategy
My current setfit version is 1.0.3. For transformers, it is 4.42.4.