Package paramz :: Package optimization :: Module optimization :: Class Optimizer
[hide private]
[frames] | no frames]

Class Optimizer

source code


Superclass for all the optimizers.

:param x_init: initial set of parameters :param f_fp: function that returns the function AND the gradients at the same time :param f: function to optimize :param fp: gradients :param messages: print messages from the optimizer? :type messages: (True | False) :param max_f_eval: maximum number of function evaluations

:rtype: optimizer object.

Instance Methods [hide private]
 
__init__(self, messages=False, max_f_eval=10000.0, max_iters=1000.0, ftol=None, gtol=None, xtol=None, bfgs_factor=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self, x_init, **kwargs) source code
 
opt(self, x_init, f_fp=None, f=None, fp=None) source code
 
__str__(self)
str(x)
source code
 
__getstate__(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, messages=False, max_f_eval=10000.0, max_iters=1000.0, ftol=None, gtol=None, xtol=None, bfgs_factor=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)