Optimization#
Loss functions
The following functions can be used as the loss_function argument for Metamer and MetamerCTF.
Calculate the MSE between |
|
Calculate the L2-norm of the difference between |
|
Calculate the relative sum of squared errors between two tensors. |
Loss function factories
The following functions return a function that can be used as a loss_function, as above.
Create the loss function required for |
|
Create loss function that computes groupwise relative L2 norm for synthesis. |
Penalty functions
The following functions operate as penalties.
Calculate quadratic penalty on values outside of |