transformers/docs/source
Colin Brochtrup 8ffc01a76a
Add early stopping callback to pytorch trainer (#8581)
* Add early stopping patience and minimum threshold metric must improve to prevent early stopping to pytorch trainer

* Add early stopping test

* Set patience counter to 0 if best metric not defined yet

* Make early stopping a callback. Add callback event for updating the best metric for early stopping callback to trigger on.

* Run make style

* make funciton name sensible

* Improve new argument docstring wording and hope that flakey CI test passes.

* Use on_evaluation callback instead of custom. Remove some debug printing

* Move early stopping arguments and state into early stopping callback

* Run make style

* Remove old code

* Fix docs formatting. make style went rogue on me.

* Remove copied attributes and fix variable

* Add assertions on training arguments instead of mutating them. Move comment out of public docs.

* Make separate test for early stopping callback. Add test of invalid arguments.

* Run make style... I remembered before CI this time!

* appease flake8

* Add EarlyStoppingCallback to callback docs

* Make docstring EarlyStoppingCallabck match other callbacks.

* Fix typo in docs
2020-11-23 17:25:35 -05:00
..
_static Update doc for v3.5.1 2020-11-13 10:29:58 -05:00
imgs Guide to fixed-length model perplexity evaluation (#5449) 2020-07-07 16:04:15 -06:00
internal Refactoring the generate() function (#6949) 2020-11-03 16:04:22 +01:00
main_classes Add early stopping callback to pytorch trainer (#8581) 2020-11-23 17:25:35 -05:00
model_doc Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
benchmarks.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
bertology.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
conf.py Release: v3.5.0 2020-11-10 08:50:43 -05:00
contributing.md Update installation page and add contributing to the doc (#5084) 2020-06-17 14:01:10 -04:00
converting_tensorflow_models.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
custom_datasets.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
examples.md per_device instead of per_gpu/error thrown when argument unknown (#4618) 2020-05-27 11:36:55 -04:00
favicon.ico Adding usage examples for common tasks (#2850) 2020-02-25 13:48:24 -05:00
glossary.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
index.rst Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
installation.md Change default cache path (#8734) 2020-11-23 13:56:45 -05:00
migration.md Fix doc errors and typos across the board (#8139) 2020-10-29 10:33:33 -04:00
model_sharing.rst Model sharing doc: more tweaks (#8520) 2020-11-13 12:10:26 -05:00
model_summary.rst Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
multilingual.rst Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
notebooks.md Update notebooks (#3620) 2020-04-06 14:32:39 -04:00
perplexity.rst Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
philosophy.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
preprocessing.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
pretrained_models.rst Tokenizers: ability to load from model subfolder (#8586) 2020-11-17 08:58:45 -05:00
quicktour.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
serialization.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
task_summary.rst Updated the Extractive Question Answering code snippets (#8636) 2020-11-18 18:56:47 -05:00
testing.rst Fix a few last paths for the new repo org (#8666) 2020-11-19 11:56:42 -05:00
tokenizer_summary.rst [Tokenizer Doc] Improve tokenizer summary (#8622) 2020-11-18 17:14:15 +01:00
training.rst Switch return_dict to True by default. (#8530) 2020-11-16 11:43:00 -05:00