pyswarms icon indicating copy to clipboard operation
pyswarms copied to clipboard

Add the function callback feature at each iteration.

Open caiofcm opened this issue 2 years ago • 2 comments

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.

caiofcm avatar Jun 15 '22 23:06 caiofcm

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Thanks for this PR! Will review this on the weekend (July 2-3)

ljvmiranda921 avatar Jun 29 '22 05:06 ljvmiranda921