Skip to content

Commit cf14997

Browse files
update tests
1 parent 647aa38 commit cf14997

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/mud_examples/lin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def main_dim(args):
5555
# fsize = args.fsize
5656
# linewidth = args.linewidth
5757
# seed = args.seed
58-
# inputdim = args.input_dim
58+
# dim_input = args.input_dim
5959
# save = args.save
6060
# alt = args.alt
6161
# bayes = args.bayes
@@ -82,7 +82,7 @@ def numnonzero(x, tol=1E-4):
8282
# We sequentially incorporate $D=1, \dots , P$ dimensions into our QoI map and study the 2-norm between the true value that was used to generate the data and the analytical MUD/MAP points.
8383

8484

85-
85+
# dim_output = dim_input
8686
dim_input, dim_output = 100, 100
8787
seed = 12
8888
np.random.seed(seed)
@@ -323,9 +323,9 @@ def main_rank(args):
323323
_err_map = err_map_list[idx]
324324
_err_pin = err_pin_list[idx]
325325

326-
plt.plot(x, _err_mud, label='mud', c='k', lw=10)
327-
plt.plot(x, _err_map, label='map', c='r', ls='--', lw=5)
328-
plt.plot(x, _err_pin, label='lsq', c='xkcd:light blue', ls='-', lw=5)
326+
plt.plot(x, _err_mud, label='MUD', c='k', lw=10)
327+
plt.plot(x, _err_map, label='MAP', c='r', ls='--', lw=5)
328+
plt.plot(x, _err_pin, label='LSQ', c='xkcd:light blue', ls='-', lw=5)
329329

330330
# plt.plot(x, regression, c='g', ls='-')
331331
# plt.xlim(0,dim_output)
@@ -339,7 +339,7 @@ def main_rank(args):
339339
# plt.ylim(1E-4, 5E-2)
340340
plt.ylabel("$\\frac{||\\lambda^\\dagger - \\lambda||}{||\\lambda^\\dagger||}$", fontsize=fsize*1.25)
341341
plt.xlabel('Rank(A)', fontsize=fsize)
342-
plt.legend(['mud', 'map', 'least squares'], fontsize=fsize)
342+
plt.legend(['MUD', 'MAP', 'Least Squares'], fontsize=fsize)
343343
# plt.annotate(f'Slope={slope:1.4f}', (4,4/7), fontsize=32)
344344
plt.savefig(f'{fdir}/{prefix}-convergence.png', bbox_inches='tight')
345345
plt.close()

src/mud_examples/runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ def run_ode():
173173
"""Recreates Poisson figures in MUD paper.
174174
175175
>>> run_ode()
176-
Will run simulations for %T=[0.1, 0.5, 1.0]
176+
Will run simulations for %T=[0.1, 0.25, 0.5, 1.0]
177177
Running example: mud
178-
Measurements: [20, 100, 200]
178+
Measurements: [20, 50, 100, 200]
179179
Plotting decay solution.
180180
Running example: map
181-
Measurements: [20, 100, 200]
181+
Measurements: [20, 50, 100, 200]
182182
Plotting decay solution.
183183
Plotting experiments involving increasing # of measurements.
184184
>>> import os; os.system('rm -rf figures/')

0 commit comments

Comments
 (0)