Skip to content

Commit

Permalink
Token Classification epochs parameter trainer changed (#4393)
Browse files Browse the repository at this point in the history
Closes #4373 

**Type of change**

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (change restructuring the codebase without changing
functionality)
- [ ] Improvement (change adding some improvement to an existing
functionality)
- [X] Documentation update

**How Has This Been Tested**

This feature was tested while working on the SpanMarker tutorial, as I
realised the number of training epochs only changed with
`trainer.update_config(num_train_epochs=2)`, not with
`trainer.update_config(max_epochs=2) `
  • Loading branch information
ignacioct authored Dec 11, 2023
1 parent d7b64ef commit cfff96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_source/practical_guides/fine_tune.md
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ trainer = ArgillaTrainer(
framework="spacy",
train_size=0.8
)
trainer.update_config(max_epochs=2)
trainer.update_config(num_train_epochs=2)
trainer.train(output_dir="my_spacy_model")
records = trainer.predict("The ArgillaTrainer is great!", as_argilla_records=True)
rg.log(records=records, name="conll2003", workspace="admin")
Expand Down

0 comments on commit cfff96b

Please sign in to comment.