Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc typos in binary discrete optimizer module (pyswarms.discrete.binary) #409

Merged
merged 2 commits into from
Jun 17, 2020

Conversation

Archer6621
Copy link
Contributor

@Archer6621 Archer6621 commented Jun 16, 2020

Description

Since m wasn't defined anywhere, I assumed the inertia w was actually meant here, similar to the formula for the real-valued algorithm. In addition to that, the w key was also missing in documentation for the options dict keyword argument in the initialization of BinaryPSO, fixed that as well.

Related Issue

I guess #389 ?

Motivation and Context

This change improves the clarity of the documentation.

How Has This Been Tested?

Not applicable.

Screenshots (if appropriate):

Not applicable.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Since 'm' wasn't defined anywhere, I assumed the inertia 'w' was actually meant here, similar to the formula for the real-valued algorithm
@Archer6621 Archer6621 changed the title Fix typo in formula: 'm' --> 'w' Fix doc typos in binary discrete optimizer module (pyswarms.discrete.binary) Jun 16, 2020
…inaryPSO init

The 'w' key was missing in the `options` dictionary, but was described below in the list (and is used in the code as well).
@ljvmiranda921 ljvmiranda921 self-requested a review June 16, 2020 12:06
Copy link
Owner

@ljvmiranda921 ljvmiranda921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow thanks for catching this @Archer6621 ! Approved. Let me merge by tomorrow! 👍

@ljvmiranda921 ljvmiranda921 merged commit ea9de04 into ljvmiranda921:master Jun 17, 2020
@ljvmiranda921
Copy link
Owner

@all-contributors please add @Archer6621 for documentation!

@allcontributors
Copy link
Contributor

@ljvmiranda921

I've put up a pull request to add @Archer6621! 🎉

@Archer6621 Archer6621 deleted the patch-1 branch June 17, 2020 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants