Skip to content

Commit

Permalink
fixed references and add more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed May 16, 2018
1 parent d0bb7dc commit 76ebdec
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 15 deletions.
1 change: 1 addition & 0 deletions doc/source/api/madm/madm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
closeness
moora
electre
simus
6 changes: 6 additions & 0 deletions doc/source/api/madm/simus.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
``skcriteria.madm.simus`` module
================================

.. automodule:: skcriteria.madm.simus
:members:
:show-inheritance:
13 changes: 7 additions & 6 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
import skcriteria

# modules to mock in readthedocs
MOCK_MODULES = ["numpy", "scipy",
"matplotlib", "matplotlib.pyplot",
"matplotlib.cm", "matplotlib.patches",
"matplotlib.spines", "matplotlib.projections.polar",
"matplotlib.projections", "matplotlib.path"]
MOCK_MODULES = []
#~ ["numpy", "scipy",
#~ "matplotlib", "matplotlib.pyplot",
#~ "matplotlib.cm", "matplotlib.patches",
#~ "matplotlib.spines", "matplotlib.projections.polar",
#~ "matplotlib.projections", "matplotlib.path"]

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -72,7 +73,7 @@

# General information about the project.
project = skcriteria.NAME
copyright = u'2015-2016-2017, Juan B. Cabral - Nadia A. Luczywo'
copyright = u'2015-2016-2017-2018, Juan B. Cabral - Nadia A. Luczywo'
author = u'Juan BC'

# The version info for the project you're documenting, acts as replacement for
Expand Down
4 changes: 2 additions & 2 deletions doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Installing scikit-criteria
==========================

The easiest way to install scikit-learn is using ``pip`` ::
The easiest way to install scikit-criteria is using ``pip`` ::

pip install -U scikit-criteria

Expand Down Expand Up @@ -35,5 +35,5 @@ Canopy and Anaconda for all supported platforms
`Canopy
<https://www.enthought.com/products/canopy>`_ and `Anaconda
<https://www.continuum.io/downloads>`_ both ship a recent
version of scikit-learn, in addition to a large set of scientific python
version of Python, in addition to a large set of scientific python
library for Windows, Mac OSX and Linux.
9 changes: 9 additions & 0 deletions skcriteria/madm/electre.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class ELECTRE1(DecisionMaker):
.. [3] Tzeng, G. H., & Huang, J. J. (2011). Multiple attribute decision
making: methods and applications. CRC press.
"""

def __init__(self, p=.65, q=.35, mnorm="sum", wnorm="sum", njobs=None):
Expand Down Expand Up @@ -269,3 +270,11 @@ def q(self):
"""
return self._q

@property
def njobs(self):
"""How many cores to use to solve the linear programs and the second
method. By default all the availables cores are used.
"""
return self._njobs
22 changes: 15 additions & 7 deletions skcriteria/madm/simus.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ class SIMUS(DecisionMaker):
The two methods are executed always.
solver : str, default="pulp"
Whic solver to use to solve the undelying linear programs. The full
list are available in :py:dict:`skcriteria.utils.lp.SOLVERS`
Which solver to use to solve the undelying linear programs. The full
list are available in `skcriteria.utils.lp.SOLVERS`
njobs : int, default=None
How many cores to use to solve the linear programs and the second
Expand Down Expand Up @@ -292,16 +292,16 @@ class SIMUS(DecisionMaker):
- **doms**: Total dominance matrix of the 2nd. method.
- **dom_by_crit**: Dominance by criteria of the 2nd method.
References
----------
.. [1] Munier, N. (2011). A strategy for using multicriteria analysis in
decision-making: a guide for simple and complex environmental projects.
Springer Science & Business Media.
decision-making: a guide for simple and complex environmental projects.
Springer Science & Business Media.
.. [2] Munier, N., Carignano, C., & Alberto, C. UN MÉTODO DE PROGRAMACIÓN
MULTIOBJETIVO. Revista de la Escuela de Perfeccionamiento en Investigación
Operativa, 24(39).
MULTIOBJETIVO. Revista de la Escuela de Perfeccionamiento en
Investigación Operativa, 24(39).
"""

Expand Down Expand Up @@ -336,10 +336,18 @@ def solve(self, ndata, b):

@property
def solver(self):
"""Which solver to use to solve the undelying linear programs. The full
list are available in `skcriteria.utils.lp.SOLVERS`
"""
return self._solver

@property
def njobs(self):
"""How many cores to use to solve the linear programs and the second
method. By default all the availables cores are used.
"""
return self._njobs


Expand Down

0 comments on commit 76ebdec

Please sign in to comment.