Home | Trees | Indices | Help |
---|
|
object --+ | properties.Function --+ | properties.CompositeFunction --+ | properties.MultiblockFunction --+ | object --+ | | | properties.MultiblockGradient --+ | object --+ | | | properties.MultiblockProximalOperator --+ | object --+ | | | properties.MultiblockProjectionOperator --+ | object --+ | | | properties.MultiblockStepSize --+ | CombinedMultiblockFunction
Combines one or more loss functions, any number of penalties and zero or one proximal operator. This function thus represents f(x) = g_1(x) [ + g_2(x) ... ] [ + d_1(x) ... ] [ + N_1(x) ...] [ + h_1(x) ...], subject to [ C_1(x) <= c_1, C_2(x) <= c_2, ... ], where g_i are differentiable Functions that may be multiblock, d_j are differentiable penalties, h_k are a ProximalOperators and N_l are NesterovFunctions. All functions and penalties must thus have Gradients, unless they are ProximalOperators. If no ProximalOperator is given, prox will be the identity. Parameters ---------- X : List of numpy arrays. The blocks of data in the multiblock model. functions : List of lists of lists. A function matrix, with element i,j connecting block i to block j. penalties : A list of lists. Element i of the outer list is also a list that contains the penalties for block i. prox : A list of lists. Element i of the outer list is also a list that contains the penalties that can be expressed as proximal operators for block i. constraints : A list of lists. Element i of the outer list is also a list that contains the constraints for block i.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
__abstractmethods__ =
|
|||
_abc_negative_cache_version = 14
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Free any cached computations from previous use of this Function.
|
Add a function that connects blocks i and j. Parameters ---------- function : Function or MultiblockFunction. A function that connects block i and block j. i : Non-negative integer. Index of the first block. Zero based, so 0 is the first block. j : Non-negative integer. Index of the second block. Zero based, so 0 is the first block. |
Add a constraint to this function.
|
Function value. Parameters ---------- w : List of numpy arrays. The weight vectors.
|
Function value of smoothed function. Parameters ---------- w : List of numpy arrays. The weight vectors. |
Gradient of the differentiable part of the function. From the interface "MultiblockGradient". Parameters ---------- w : List of numpy arrays. The weight vectors, w[index] is the point at which to evaluate the gradient. index : Non-negative integer. Which variable the step is for.
|
The proximal operator of the non-differentiable part of the function with the given index. From the interface "MultiblockProximalOperator". Parameters ---------- w : List of numpy arrays. The weight vectors. index : Non-negative integer. Which variable the step is for. factor : Positive float. A factor by which the Lagrange multiplier is scaled. This is usually the step size.
|
The projection operator of a constraint that corresponds to the function with the given index. From the interface "MultiblockProjectionOperator". Parameters ---------- w : List of numpy arrays. The weight vectors. index : Non-negative integer. Which variable the step is for.
|
The step size to use in descent methods. From the interface "StepSize". Parameters ---------- w : Numpy array. The point at which to determine the step size. index : Non-negative integer. The variable which the step is for.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Apr 6 23:52:11 2015 | http://epydoc.sourceforge.net |