Early stop when no loss reduces during tolerance_window asks
Example of using :
optimizer.register_callback("ask", ng.callbacks.EarlyStopping.no_improvement_stopper(no_imp_window))
tested python3 -m pytest test_callbacks.py
[*] New feature (non-breaking change which adds functionality)
Motivation and Context / Related issue
Provide early stoping feedback based on no improvemen frequent case for optimization
Types of changes
TL;DR
Early stop when no loss reduces during tolerance_window asks Example of using :
optimizer.register_callback("ask", ng.callbacks.EarlyStopping.no_improvement_stopper(no_imp_window))
tested python3 -m pytest test_callbacks.py
Motivation and Context / Related issue
Provide early stoping feedback based on no improvemen frequent case for optimization
there are several issues connected to that early stoping implementation https://github.com/facebookresearch/nevergrad/issues/714 https://github.com/facebookresearch/nevergrad/issues/589
How Has This Been Tested (if it applies)
I've provided different unit tests to test it python3 -m pytest test_callbacks.py
Checklist