Package parsimony :: Package algorithms :: Module bases :: Class ExplicitAlgorithm
[hide private]
[frames] | no frames]

Class ExplicitAlgorithm

source code

   object --+    
            |    
BaseAlgorithm --+
                |
               ExplicitAlgorithm
Known Subclasses:

Explicit algorithms are algorithms that minimises a given function.

The function is explicitly minimised from properties of said function.

Implementing classes should update the INTERFACES class variable with the properties that function must implement. Defauls to a list with one element, the Function.

Instance Methods [hide private]
 
run(function, x, **kwargs)
This function obtains a minimiser of a give function.
source code

Inherited from BaseAlgorithm: get_params, set_params

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from BaseAlgorithm: check_compatibility

Class Variables [hide private]
  __metaclass__ = abc.ABCMeta
Metaclass for defining Abstract Base Classes (ABCs).
  INTERFACES = [<class 'parsimony.functions.properties.Function'>]
  __abstractmethods__ = frozenset(['run'])
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(function, x, **kwargs)

source code 
This function obtains a minimiser of a give function.

Parameters
----------
function : The function to minimise.

x : A starting point.

Decorators:
  • @abc.abstractmethod