this is my code snippet
from transformers import TrainingArguments, Trainer
Define training arguments
args = TrainingArguments(
output_dir=’./content/drive/MyDrive/phase ii/result’, # Directory to save the results
evaluation_strategy=”epoch”, # Evaluate at the end of each epoch
save_strategy=”epoch”, # Save checkpoint at the end of each epoch
save_total_limit=3, # Limit the total amount of checkpoints
learning_rate=1e-5, # Set the learning rate
per_device_train_batch_size=32, # Batch size for training
per_device_eval_batch_size=32, # Batch size for evaluation
num_train_epochs=10, # Number of training epochs
report_to=”none”, # Disable reporting to external systems
load_best_model_at_end=True, # Load the best model when training is finished
metric_for_best_model=”f1″ # Metric to use for selecting the best model
)
facing this error while executing the given above code
how can I solve the given problem. can you briefly explain with necessary solution
Fowzia Rahman Taznin 202-15-38 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.