Skip to content

Commit

Permalink
Add plotters to docs index (#130)
Browse files Browse the repository at this point in the history
This commit adds the plotters module into ReadTheDocs index
and adds a deprecated information on plot_environment.py

Signed-off-by: Lester James V. Miranda <ljvmiranda@gmail.com>
  • Loading branch information
ljvmiranda921 committed Jun 14, 2018
1 parent 054570e commit a56c50e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/api/_pyswarms.utils.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Utilities
=========

This includes various utilities to help in optimization. In the future,
parameter search and plotting techniques will be incoroporated in this
module.
This includes various utilities to help in optimization. Some utilities
include benchmark objective functions, hyperparameter search, and plotting
functionalities.

.. toctree::

pyswarms.utils.functions
pyswarms.utils.search
pyswarms.utils.plotters
pyswarms.utils.environments
17 changes: 17 additions & 0 deletions docs/api/pyswarms.utils.environments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pyswarms.utils.environments package
====================================

.. automodule:: pyswarms.utils.environments

.. deprecated:: 0.2.1
This module will be deprecated in the next release. Please use
:mod:`pyswarms.utils.plotters` instead.

pyswarms.utils.environments.plot_environment module
----------------------------------------------------

.. automodule:: pyswarms.utils.environments.plot_environment
:members:
:undoc-members:
:show-inheritance:
:special-members: __init__
20 changes: 20 additions & 0 deletions docs/api/pyswarms.utils.plotters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pyswarms.utils.plotters package
================================

.. automodule:: pyswarms.utils.plotters

pyswarms.utils.plotters.plotters module
----------------------------------------

.. automodule:: pyswarms.utils.plotters.plotters
:members:
:undoc-members:
:show-inheritance:

pyswarms.utils.plotters.formatters module
------------------------------------------

.. automodule:: pyswarms.utils.plotters.formatters
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions pyswarms/utils/environments/plot_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
r"""
Plot environment for Optimizer Analysis
.. deprecated:: 0.2.1
This module will be deprecated in the next release. Please use
:mod:`pyswarms.utils.plotters` instead.
The class PlotEnvironment is built on top of :code:`matplotlib` in order
to render quick and easy plots for your optimizer. It can plot the best
cost for each iteration, and show animations of the particles in 2-D and
Expand Down

0 comments on commit a56c50e

Please sign in to comment.