mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 14:17:58 +03:00
5ea14af32b
* Add `training.before_update` callback This callback can be used to implement training paradigms like gradual (un)freezing of components (e.g: the Transformer) after a certain number of training steps to mitigate catastrophic forgetting during fine-tuning. * Fix type annotation, default config value * Generalize arguments passed to the callback * Update schema * Pass `epoch` to callback, rename `current_step` to `step` * Add test * Simplify test * Replace config string with `spacy.blank` * Apply suggestions from code review Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com> * Cleanup imports Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
test_augmenters.py | ||
test_logger.py | ||
test_new_example.py | ||
test_pretraining.py | ||
test_readers.py | ||
test_rehearse.py | ||
test_training.py |