Functions¶
The pyunlocbox.functions
module implements an interface for solvers to
access the functions to be optimized as well as common objective functions.
Interface¶
The func
base class defines a common interface to all functions:
|
Test the capabilities of the function object. |
|
Function evaluation. |
|
Function proximal operator. |
|
Function gradient. |
Functions¶
Then, derived classes implement various common objective functions.
Norm operators (based on norm
)
|
L1-norm (eval, prox). |
|
L2-norm (eval, prox, grad). |
|
Nuclear-norm (eval, prox). |
|
TV-norm (eval, prox). |
Projection operators (based on proj
)
|
Projection on the L2-ball (eval, prox). |
Miscellaneous
|
Dummy function which returns 0 (eval, prox, grad). |
