Skip to content

Commit f630121

Browse files
authored
Merge pull request #102 from mrava87/main
minor: changed prior of tau for adaptive case
2 parents 13723bb + 18504e4 commit f630121

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproximal/optimization/primal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def ProximalGradient(proxf, proxg, x0, tau=None, beta=0.5,
182182
\nabla f(\mathbf{y})^T (\mathbf{x} - \mathbf{y}) +
183183
1/(2\tau)||\mathbf{x} - \mathbf{y}||_2^2`.
184184
185-
Different accellerations are provided:
185+
Different accelerations are provided:
186186
187187
- ``acceleration=None``: :math:`\omega^k = 0`;
188188
- `acceleration=vandenberghe`` [1]_: :math:`\omega^k = k / (k + 3)` for `
@@ -210,10 +210,10 @@ def ProximalGradient(proxf, proxg, x0, tau=None, beta=0.5,
210210
'---------------------------------------------------------\n'
211211
'Proximal operator (f): %s\n'
212212
'Proximal operator (g): %s\n'
213-
'tau = %10e\tbeta=%10e\n'
213+
'tau = %s\tbeta=%10e\n'
214214
'epsg = %s\tniter = %d\t'
215215
'niterback = %d\n' % (type(proxf), type(proxg),
216-
0 if tau is None else tau, beta,
216+
'Adaptive' if tau is None else str(tau), beta,
217217
epsg_print, niter, niterback))
218218
head = ' Itn x[0] f g J=f+eps*g'
219219
print(head)

0 commit comments

Comments
 (0)