Package parsimony :: Package datasets :: Package simulate :: Module grad :: Class L2Squared
[hide private]
[frames] | no frames]

Class L2Squared

source code

object --+    
         |    
  Function --+
             |
            L2Squared

Nested Classes [hide private]

Inherited from Function: __metaclass__

Instance Methods [hide private]
 
__init__(self, l)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
grad(self, x)
Gradient of the function
source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, l)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

grad(self, x)

source code 
Gradient of the function

    f(x) = (1 / 2) * |x|²_2,

where |x|²_2 is the squared L2-norm.

Overrides: Function.grad