Skip to content

Commit

Permalink
Merge pull request #133 from mrava87/doc-pnp
Browse files Browse the repository at this point in the history
minor: updated docstring of pnp
  • Loading branch information
mrava87 authored Jul 20, 2023
2 parents 2eeb785 + c573912 commit 2ee3384
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions pyproximal/optimization/pnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class _Denoise(ProxOperator):
denoiser : :obj:`func`
Denoiser (must be a function with two inputs, the first is the signal
to be denoised, the second is the `tau` constant of the y-update in
the ADMM optimization
the PnP optimization
dims : :obj:`tuple`
Dimensions used to reshape the vector ``x`` in the ``prox`` method
prior to calling the ``denoiser``
Expand Down Expand Up @@ -64,24 +64,13 @@ def PlugAndPlay(proxf, denoiser, dims, x0, solver=ADMM, **kwargs_solver):
Initial vector
solver : :func:`pyproximal.optimization.primal` or :func:`pyproximal.optimization.primaldual`
Solver of choice
tau : :obj:`float`, optional
Positive scalar weight, which should satisfy the following condition
to guarantees convergence: :math:`\tau \in (0, 1/L]` where ``L`` is
the Lipschitz constant of :math:`\nabla f`.
niter : :obj:`int`, optional
Number of iterations of iterative scheme
callback : :obj:`callable`, optional
Function with signature (``callback(x)``) to call after each iteration
where ``x`` is the current model vector
show : :obj:`bool`, optional
Display iterations log
kwargs_solver : :obj:`dict`
Additonal parameters required by the selected solver
Returns
-------
x : :obj:`numpy.ndarray`
Inverted model
z : :obj:`numpy.ndarray`
Inverted second model
out : :obj:`numpy.ndarray` or :obj:`tuple`
Output of the solver of choice
Notes
-----
Expand Down

0 comments on commit 2ee3384

Please sign in to comment.