Skip to content

Commit 37fb579

Browse files
committed
docstring
1 parent d64947b commit 37fb579

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

PEPit/examples/nonconvex_optimization/gradient_descent_quadratic_lojasiewicz_expensive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_expensive(L, mu, gamma, n, wrapper
109109
(PEPit) Final upper bound (dual): 0.6832669563172779 and lower bound (primal example): 0.6832669556328734
110110
(PEPit) Duality gap: absolute: 6.844044220244427e-10 and relative: 1.0016647466735981e-09
111111
*** Example file: worst-case performance of gradient descent with fixed step-size ***
112-
*** (smooth problem satisfying a Lojasiewicz inequality; expert version) ***
112+
*** (smooth problem satisfying a Lojasiewicz inequality; expensive version) ***
113113
PEPit guarantee: f(x_1) - f(x_*) <= 0.683267 (f(x_0)-f_*)
114114
Theoretical guarantee: f(x_1) - f(x_*) <= 0.727273 (f(x_0)-f_*)
115115
@@ -160,7 +160,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_expensive(L, mu, gamma, n, wrapper
160160
# Print conclusion if required
161161
if verbose != -1:
162162
print('*** Example file: worst-case performance of gradient descent with fixed step-size ***')
163-
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; expert version) ***')
163+
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; expensive version) ***')
164164
print('\tPEPit guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(pepit_tau))
165165
print('\tTheoretical guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(theoretical_tau))
166166

PEPit/examples/nonconvex_optimization/gradient_descent_quadratic_lojasiewicz_intermediate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_intermediate(L, mu, gamma, n, alph
7979
Example:
8080
>>> L, mu, gamma, n = 1, .2, 1, 1
8181
>>> alpha = (2*mu/(2*L+mu))
82-
>>> pepit_tau, theoretical_tau = wc_gradient_descent_refinedLojasiewicz(L=L, gamma=gamma, n=1, alpha=alpha, wrapper="cvxpy", solver=None, verbose=1)
82+
>>> pepit_tau, theoretical_tau = wc_gradient_descent_quadratic_lojasiewicz_intermediate(L=L, gamma=gamma, n=1, alpha=alpha, wrapper="cvxpy", solver=None, verbose=1)
8383
(PEPit) Setting up the problem: size of the Gram matrix: 4x4
8484
(PEPit) Setting up the problem: performance measure is the minimum of 1 element(s)
8585
(PEPit) Setting up the problem: Adding initial conditions and general constraints ...
@@ -101,7 +101,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_intermediate(L, mu, gamma, n, alph
101101
(PEPit) Final upper bound (dual): 0.7272727272394729 and lower bound (primal example): 0.727272727239017
102102
(PEPit) Duality gap: absolute: 4.558575739110893e-13 and relative: 6.268041641568012e-13
103103
*** Example file: worst-case performance of gradient descent with fixed step-size ***
104-
*** (smooth problem satisfying a Lojasiewicz inequality; refined version) ***
104+
*** (smooth problem satisfying a Lojasiewicz inequality; intermediate version) ***
105105
PEPit guarantee: f(x_1) - f(x_*) <= 0.727273 (f(x_0)-f_*)
106106
Theoretical guarantee: f(x_1) - f(x_*) <= 0.727273 (f(x_0)-f_*)
107107
@@ -152,7 +152,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_intermediate(L, mu, gamma, n, alph
152152
# Print conclusion if required
153153
if verbose != -1:
154154
print('*** Example file: worst-case performance of gradient descent with fixed step-size ***')
155-
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; refined version) ***')
155+
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; intermediate version) ***')
156156
print('\tPEPit guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(pepit_tau))
157157
print('\tTheoretical guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(theoretical_tau))
158158

PEPit/examples/nonconvex_optimization/gradient_descent_quadratic_lojasiewicz_naive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_naive(L, mu, gamma, n, wrapper="cv
9595
(PEPit) Final upper bound (dual): 0.7272727115834279 and lower bound (primal example): 0.7272727088286305
9696
(PEPit) Duality gap: absolute: 2.754797390203123e-09 and relative: 3.7878465075914795e-09
9797
*** Example file: worst-case performance of gradient descent with fixed step-size ***
98-
*** (smooth problem satisfying a Lojasiewicz inequality; basic version) ***
98+
*** (smooth problem satisfying a Lojasiewicz inequality; cheap naive version) ***
9999
PEPit guarantee: f(x_1) - f(x_*) <= 0.727273 (f(x_0)-f_*)
100100
Theoretical guarantee: f(x_1) - f(x_*) <= 0.727273 (f(x_0)-f_*)
101101
@@ -146,7 +146,7 @@ def wc_gradient_descent_quadratic_lojasiewicz_naive(L, mu, gamma, n, wrapper="cv
146146
# Print conclusion if required
147147
if verbose != -1:
148148
print('*** Example file: worst-case performance of gradient descent with fixed step-size ***')
149-
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; basic version) ***')
149+
print('*** \t (smooth problem satisfying a Lojasiewicz inequality; cheap naive version) ***')
150150
print('\tPEPit guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(pepit_tau))
151151
print('\tTheoretical guarantee:\t f(x_1) - f(x_*) <= {:.6} (f(x_0)-f_*)'.format(theoretical_tau))
152152

0 commit comments

Comments
 (0)