pyswarms
pyswarms copied to clipboard
Add the function callback feature at each iteration.
Add callback function as discussed in issue #359
- Description
The change added the feature of calling a callback function at each iteration.
- Related Issue
#359
- Motivation and Context
Option to call a callback function for user custom tasks
- How Has This Been Tested?
Added test at test_global_best.py
checking the standard output
Types of changes
- [x] New feature (non-breaking change which adds functionality)
Checklist:
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
Obs: after running black some other files were formatted.
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Thanks for this PR! Will review this on the weekend (July 2-3)