AmplitudeLoss#

class deepinv.optim.AmplitudeLoss[source]#

Bases: DataFidelity

Amplitude loss as the data fidelity term for deepinv.physics.PhaseRetrieval() reconstrunction.

In this case, the data fidelity term is defined as

\[f(x) = \sum_{i=1}^{m}{(\sqrt{|b_i x|^2}-\sqrt{y_i})^2},\]

where \(b_i\) is the i-th row of the linear operator \(B\) of the phase retrieval class and \(y_i\) is the i-th entry of the measurements, and \(m\) is the number of measurements.