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

Write a backend module #111

Closed
3 tasks done
ljvmiranda921 opened this issue May 13, 2018 · 0 comments
Closed
3 tasks done

Write a backend module #111

ljvmiranda921 opened this issue May 13, 2018 · 0 comments
Assignees
Labels
documentation Documentation improvements or fixes enhancement Feature requests

Comments

@ljvmiranda921
Copy link
Owner

ljvmiranda921 commented May 13, 2018

I think it's better to decompose some methods in the swarm loop into its own backend module.
Makes it easier for us to test what's happening inside.

Deps: #101
Port all tests to pytest first before doing this.

  • Accomplish Issue Port all tests into pytest #101
  • Write a backend module
  • Add tests to backend module
  • Update documentation about the module (make new Issue on this)
@ljvmiranda921 ljvmiranda921 added enhancement Feature requests documentation Documentation improvements or fixes v0.2.0 labels May 13, 2018
@ljvmiranda921 ljvmiranda921 self-assigned this May 13, 2018
ljvmiranda921 pushed a commit that referenced this issue May 20, 2018
Reference: #111

This commit adds a backend module consisting of various abstractions
to common PSO operations. There are two files for this:
  - generators: for generating swarm positions, velocities, etc.
  - operators: for various swarm operations (update velocity, etc.)

As of now, one gripe I have with my current implementation is that
it consists of methods with a lot of parameters (it doesn't look
pleasing or concise). My idea is to add a Swarm class that contains
the position, velocity, c1, c2, w, etc. And just put them inside
the optimizer. We'll see how it goes

Signed-off-by: ljvmiranda921 <lester.miranda@obf.ateneo.edu>
ljvmiranda921 pushed a commit that referenced this issue May 20, 2018
Reference: #111

This commit replaces SwarmBase with backend operations for generating
the swarm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation improvements or fixes enhancement Feature requests
Projects
None yet
Development

No branches or pull requests

1 participant