mmengine/tests
Hakjin Lee b3430e4257
[Feature] Support EarlyStoppingHook (#739)
* [Feature] EarlyStoppingHook

* delete redundant line

* Assert stop_training and rename tests

* Fix UT

* rename `metric` to `monitor`

* Fix UT

* Fix UT

* edit docstring on patience

* Draft for new code

* fix ut

* add test case

* add test case

* fix ut

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* Append hook

* Append hook

* Apply suggestions

* Update suggestions

* Update mmengine/hooks/__init__.py

* fix min_delta

* Apply suggestions from code review

* lint

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* delete save_last

* infer rule more robust

* refine unit test

* Update mmengine/hooks/early_stopping_hook.py

---------

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>
Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
2023-03-06 13:18:42 +08:00
..
data [Enhance] Substitute the environment variable in config file (#744) 2023-02-01 10:16:47 +08:00
test_analysis [Feature] Support model complexity computation (#779) 2023-02-20 15:00:28 +08:00
test_config [Enhance] Substitute the environment variable in config file (#744) 2023-02-01 10:16:47 +08:00
test_data
test_dataset [Enhancement] Clear UT warning caused by pytest (#947) 2023-02-22 12:17:56 +08:00
test_device
test_dist
test_evaluator [Fix] Fix offline_evaluate index error (#630) 2022-11-18 01:17:12 +08:00
test_fileio [Fix] backend_args should not be modified by get_file_backend (#897) 2023-02-01 14:47:22 +08:00
test_hooks [Feature] Support EarlyStoppingHook (#739) 2023-03-06 13:18:42 +08:00
test_hub [Docs] Fix docstring and documentation used for hub.get_model (#659) 2022-11-02 10:16:56 +08:00
test_infer [Feature] Add BaseInferencer (#874) 2023-01-16 16:01:06 +08:00
test_logging [Fix] Support update np.ScalarType data in message_hub (#898) 2023-02-01 23:53:28 +08:00
test_model [Fix] Unloaded weights will not be initialized when using PretrainedIinit (#764) 2023-01-09 18:46:30 +08:00
test_optim [Fix] Fix optim_wrapper unittest for pytorch <= 1.10.0 (#975) 2023-03-02 14:14:23 +08:00
test_registry Refine the repr of Registry (#942) 2023-02-21 13:18:11 +08:00
test_runner [Enhancement] Clear UT warning caused by pytest (#947) 2023-02-22 12:17:56 +08:00
test_structures [Docs] Update docstring of structures (#840) 2022-12-21 20:07:18 +08:00
test_testing [Enhance] enhance runner test case (#631) 2022-11-21 11:54:05 +08:00
test_utils [Fix] Ignore the distributed tests for macOS platform (#821) 2022-12-27 16:18:46 +08:00
test_visualizer [Enhancement] Clear UT warning caused by pytest (#947) 2023-02-22 12:17:56 +08:00