-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP-backend] Add documentation for backend
- Loading branch information
ljvmiranda921
committed
Jun 10, 2018
1 parent
9b15301
commit 498b009
Showing
8 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Backend | ||
======== | ||
|
||
The main workhorse of PySwarms is the backend module. It contains various | ||
primitive methods and classes to help you create your own custom swarm | ||
implementation. The high-level PSO implementations in this library such | ||
as GlobalBestPSO and LocalBestPSo were built using the backend module. | ||
|
||
.. toctree:: | ||
|
||
pyswarms.backend | ||
pyswarms.topology | ||
pyswarms.swarms | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pyswarms.backend package | ||
========================= | ||
|
||
You can import all the native helper methods in this package | ||
using the command: | ||
|
||
.. code-block:: python | ||
import pyswarms.backend as P | ||
Then call the methods found in each module. Note that these methods interface | ||
with the Swarm class provided in the :mod:`pyswarms.backend.swarms` module. | ||
|
||
pyswarms.backend.generators module | ||
----------------------------------- | ||
|
||
.. automodule:: pyswarms.backend.generators | ||
:members: | ||
|
||
pyswarms.backend.operators module | ||
---------------------------------- | ||
|
||
.. automodule:: pyswarms.backend.operators | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pyswarms.swarms package | ||
======================= | ||
|
||
This package contains the Swarm class for creating your own swarm | ||
implementation. The class acts as a DataClass, holding information on the | ||
particles you have generated throughout each timestep. It offers a pre-built | ||
and flexible way of building your own swarm. | ||
|
||
pyswarms.swarms class | ||
----------------------- | ||
|
||
.. autoclass:: pyswarms.backend.swarms.Swarm | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pyswarms.topology package | ||
========================= | ||
|
||
This package implements various swarm topologies that may be useful as you | ||
build your own swarm implementations. Each topology can perform the | ||
following: | ||
|
||
* Determine the best particle on a given swarm. | ||
* Compute the next position given a current swarm position. | ||
* Compute the velocities given a swarm configuration. | ||
|
||
pyswarms.backend.topology.base module | ||
-------------------------------------- | ||
|
||
.. automodule:: pyswarms.backend.topology.base | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
pyswarms.backend.topology.star module | ||
-------------------------------------- | ||
|
||
.. automodule:: pyswarms.backend.topology.star | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
pyswarms.backend.topology.ring module | ||
-------------------------------------- | ||
|
||
.. automodule:: pyswarms.backend.topology.ring | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters