Skip to content

Commit

Permalink
updated results
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed Apr 22, 2024
1 parent 3a6afd3 commit 90a768f
Show file tree
Hide file tree
Showing 407 changed files with 654 additions and 632 deletions.
38 changes: 29 additions & 9 deletions examples/advect_fourier1D/advect1d_compare.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ modeldir_INR = joinpath(@__DIR__, "model_INR$(l0)") # C-ROM
# train_params_SNL = (; E = 1400, wd = 64, α = 1f-4, γ = 0f-0, makedata_kws,)
# train_SNF_compare(latent, datafile, modeldir_SNL, train_params_SNL; rng, device)
#

### CROM
# # train conv INR
# train_params_INR = (; E = 1400, we = 32, wd = 64, makedata_kws,)
# train_CINR_compare(prob, latent, datafile, modeldir_INR, train_params_INR; rng, device,)
# evolve_kw = (; autodiff_xyz = AutoFiniteDiff(), ϵ_xyz = 0.05f0,)
# postprocess_CINR(prob, datafile, modelfile_INR; rng, device, evolve_kw,)


#==================#
# postprocess
Expand All @@ -65,16 +70,31 @@ modelfile_INR = joinpath(modeldir_INR, "model_07.jld2")
# postprocess_SNF(prob, datafile, modelfile_SNW; rng, device)
# postprocess_SNF(prob, datafile, modelfile_SNL; rng, device)

# evolve_kw = (; autodiff_xyz = AutoFiniteDiff(), ϵ_xyz = 0.05f0,)
# postprocess_CINR(prob, datafile, modelfile_INR; rng, device, evolve_kw,)

#==================#
# make figures
# small DT
#==================#
grid = (128,)
casename = "advect1d"
modeldirs = (; modeldir_PCA, modeldir_CAE, modeldir_SNL, modeldir_SNW, modeldir_INR)
label = ("POD ($(l_pca) modes)", "CAE", "SNFL (ours)", "SNFW (ours)", "CROM")

p1, p2, p3 = compare_plots(modeldirs, label, @__DIR__, casename, 1, grid)
T = 4.0f0
Nt = 500
It = LinRange(1, Nt, 50) .|> Base.Fix1(round, Int)
data_kws = (; Ix = :, It)
evolve_kw = (; Δt = T, data_kws, adaptive = true)

outdir_SNW = joinpath(modeldir_SNW, "dt")
outdir_SNL = joinpath(modeldir_SNL, "dt")
outdir_CAE = joinpath(modeldir_CAE, "dt")

evolve_SNF(prob, datafile, modelfile_SNW, 1; rng, outdir = outdir_SNW, evolve_kw..., device)
# evolve_SNF(prob, datafile, modelfile_SNL, 1; rng, outdir = outdir_SNL, evolve_kw..., device)
# evolve_CAE(prob, datafile, modelfile_CAE, 1; rng, outdir = outdir_CAE, evolve_kw...,)

# #==================#
# # make figures
# #==================#
# grid = (128,)
# casename = "advect1d"
# modeldirs = (; modeldir_PCA, modeldir_CAE, modeldir_SNL, modeldir_SNW)
# label = ("POD ($(l_pca) modes)", "CAE", "SNFL (ours)", "SNFW (ours)")
#
# p1, p2, p3 = compare_plots(modeldirs, label, @__DIR__, casename, 1, grid; ifdt = true)
#======================================================#
Binary file modified examples/advect_fourier1D/compare_er_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/compare_t0_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/compare_t1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/plt_training_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/compare_e1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/compare_p_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/compare_u1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/evolve_e1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/evolve_p_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/evolve_u1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/train_e1_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/train_p_case1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/train_p_scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/advect_fourier1D/model_CAE02/results/train_u1_case1.png
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_01.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 3.0286938e-5 || TEST LOSS: 3.0286938e-5
Epoch [0 / 0] TRAIN LOSS: 2.5034447e-5 || TEST LOSS: 2.5034447e-5
#======================#
TRAIN STATS
R² score: 0.99996966
MSE (mean SQR error): 3.0286938e-5
RMSE (Root MSE): 0.005503357
MAE (mean ABS error): 0.003891842
maxAE (max ABS error) 0.06753397
Lipschitz bound: 6.301603
R² score: 0.9999749
MSE (mean SQR error): 2.5034447e-5
RMSE (Root MSE): 0.0050034435
MAE (mean ABS error): 0.0034444411
maxAE (max ABS error) 0.08196211
Lipschitz bound: 6.22005

#======================#
#======================#
TEST STATS
R² score: 0.99996966
MSE (mean SQR error): 3.028694e-5
RMSE (Root MSE): 0.005503357
MAE (mean ABS error): 0.0038918424
maxAE (max ABS error) 0.06753397
Lipschitz bound: 6.301603
R² score: 0.9999749
MSE (mean SQR error): 2.5034446e-5
RMSE (Root MSE): 0.0050034435
MAE (mean ABS error): 0.0034444411
maxAE (max ABS error) 0.08196211
Lipschitz bound: 6.22005

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_02.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 1.3954662e-5 || TEST LOSS: 1.3954662e-5
Epoch [0 / 0] TRAIN LOSS: 6.994859e-6 || TEST LOSS: 6.994859e-6
#======================#
TRAIN STATS
R² score: 0.99998605
MSE (mean SQR error): 1.3954662e-5
RMSE (Root MSE): 0.003735594
MAE (mean ABS error): 0.0027591616
maxAE (max ABS error) 0.04772544
Lipschitz bound: 6.298521
R² score: 0.999993
MSE (mean SQR error): 6.99486e-6
RMSE (Root MSE): 0.0026447799
MAE (mean ABS error): 0.0018560736
maxAE (max ABS error) 0.030185223
Lipschitz bound: 6.201823

#======================#
#======================#
TEST STATS
R² score: 0.99998605
MSE (mean SQR error): 1.3954662e-5
RMSE (Root MSE): 0.003735594
MAE (mean ABS error): 0.0027591616
maxAE (max ABS error) 0.04772544
Lipschitz bound: 6.298521
R² score: 0.999993
MSE (mean SQR error): 6.994859e-6
RMSE (Root MSE): 0.0026447796
MAE (mean ABS error): 0.0018560734
maxAE (max ABS error) 0.030185223
Lipschitz bound: 6.201823

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_03.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 3.7264488e-6 || TEST LOSS: 3.7264488e-6
Epoch [0 / 0] TRAIN LOSS: 3.6226565e-6 || TEST LOSS: 3.6226565e-6
#======================#
TRAIN STATS
R² score: 0.99999624
MSE (mean SQR error): 3.7264492e-6
RMSE (Root MSE): 0.0019304014
MAE (mean ABS error): 0.0013857696
maxAE (max ABS error) 0.022152066
Lipschitz bound: 6.2807975
R² score: 0.9999964
MSE (mean SQR error): 3.6226568e-6
RMSE (Root MSE): 0.0019033278
MAE (mean ABS error): 0.0013396199
maxAE (max ABS error) 0.024267793
Lipschitz bound: 6.1993003

#======================#
#======================#
TEST STATS
R² score: 0.99999624
MSE (mean SQR error): 3.7264488e-6
RMSE (Root MSE): 0.0019304012
MAE (mean ABS error): 0.0013857696
maxAE (max ABS error) 0.022152066
Lipschitz bound: 6.2807975
R² score: 0.9999964
MSE (mean SQR error): 3.6226565e-6
RMSE (Root MSE): 0.0019033278
MAE (mean ABS error): 0.0013396199
maxAE (max ABS error) 0.024267793
Lipschitz bound: 6.1993003

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_04.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 2.2367863e-6 || TEST LOSS: 2.2367863e-6
Epoch [0 / 0] TRAIN LOSS: 2.6527023e-6 || TEST LOSS: 2.6527023e-6
#======================#
TRAIN STATS
R² score: 0.99999774
MSE (mean SQR error): 2.236786e-6
RMSE (Root MSE): 0.0014955888
MAE (mean ABS error): 0.0010901858
maxAE (max ABS error) 0.014030457
Lipschitz bound: 6.2790465
R² score: 0.99999726
MSE (mean SQR error): 2.6527023e-6
RMSE (Root MSE): 0.0016287118
MAE (mean ABS error): 0.0011821537
maxAE (max ABS error) 0.018796325
Lipschitz bound: 6.196633

#======================#
#======================#
TEST STATS
R² score: 0.99999774
MSE (mean SQR error): 2.2367863e-6
RMSE (Root MSE): 0.0014955889
MAE (mean ABS error): 0.001090186
maxAE (max ABS error) 0.014030457
Lipschitz bound: 6.2790465
R² score: 0.99999726
MSE (mean SQR error): 2.6527023e-6
RMSE (Root MSE): 0.0016287118
MAE (mean ABS error): 0.0011821537
maxAE (max ABS error) 0.018796325
Lipschitz bound: 6.196633

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_05.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 1.9318497e-6 || TEST LOSS: 1.9318497e-6
Epoch [0 / 0] TRAIN LOSS: 2.331015e-6 || TEST LOSS: 2.331015e-6
#======================#
TRAIN STATS
R² score: 0.9999981
MSE (mean SQR error): 1.9318502e-6
RMSE (Root MSE): 0.0013899101
MAE (mean ABS error): 0.0010237661
maxAE (max ABS error) 0.015441775
Lipschitz bound: 6.2790074
R² score: 0.9999977
MSE (mean SQR error): 2.331015e-6
RMSE (Root MSE): 0.0015267661
MAE (mean ABS error): 0.0010998637
maxAE (max ABS error) 0.017934322
Lipschitz bound: 6.196598

#======================#
#======================#
TEST STATS
R² score: 0.9999981
MSE (mean SQR error): 1.93185e-6
RMSE (Root MSE): 0.00138991
MAE (mean ABS error): 0.0010237661
maxAE (max ABS error) 0.015441775
Lipschitz bound: 6.2790074
R² score: 0.9999977
MSE (mean SQR error): 2.331015e-6
RMSE (Root MSE): 0.0015267661
MAE (mean ABS error): 0.0010998637
maxAE (max ABS error) 0.017934322
Lipschitz bound: 6.196598

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_06.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 1.7665164e-6 || TEST LOSS: 1.7665164e-6
Epoch [0 / 0] TRAIN LOSS: 1.5599732e-6 || TEST LOSS: 1.5599732e-6
#======================#
TRAIN STATS
R² score: 0.9999982
MSE (mean SQR error): 1.7665164e-6
RMSE (Root MSE): 0.0013291036
MAE (mean ABS error): 0.0009792792
maxAE (max ABS error) 0.013536572
Lipschitz bound: 6.279079
R² score: 0.99999845
MSE (mean SQR error): 1.559973e-6
RMSE (Root MSE): 0.0012489888
MAE (mean ABS error): 0.00090077386
maxAE (max ABS error) 0.013512611
Lipschitz bound: 6.1886697

#======================#
#======================#
TEST STATS
R² score: 0.9999982
MSE (mean SQR error): 1.7665167e-6
RMSE (Root MSE): 0.0013291037
MAE (mean ABS error): 0.0009792793
maxAE (max ABS error) 0.013536572
Lipschitz bound: 6.279079
R² score: 0.99999845
MSE (mean SQR error): 1.559973e-6
RMSE (Root MSE): 0.0012489888
MAE (mean ABS error): 0.00090077386
maxAE (max ABS error) 0.013512611
Lipschitz bound: 6.1886697

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_CAE02/statistics_07.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 1.4411878e-6 || TEST LOSS: 1.4411878e-6
Epoch [0 / 0] TRAIN LOSS: 1.1553876e-6 || TEST LOSS: 1.1553876e-6
#======================#
TRAIN STATS
R² score: 0.99999857
MSE (mean SQR error): 1.4411878e-6
RMSE (Root MSE): 0.0012004948
MAE (mean ABS error): 0.00087958644
maxAE (max ABS error) 0.010552287
Lipschitz bound: 6.277384
R² score: 0.99999887
MSE (mean SQR error): 1.1553874e-6
RMSE (Root MSE): 0.0010748894
MAE (mean ABS error): 0.0007830635
maxAE (max ABS error) 0.009465933
Lipschitz bound: 6.183975

#======================#
#======================#
TEST STATS
R² score: 0.99999857
MSE (mean SQR error): 1.4411878e-6
RMSE (Root MSE): 0.0012004948
MAE (mean ABS error): 0.00087958644
maxAE (max ABS error) 0.010552287
Lipschitz bound: 6.277384
R² score: 0.99999887
MSE (mean SQR error): 1.1553874e-6
RMSE (Root MSE): 0.0010748894
MAE (mean ABS error): 0.0007830635
maxAE (max ABS error) 0.009465933
Lipschitz bound: 6.183975

#======================#
Diff not rendered.
Binary file modified examples/advect_fourier1D/model_PCA08/test_1.png
Binary file modified examples/advect_fourier1D/model_PCA08/train_1.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_01.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_02.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_03.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_04.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_05.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_06.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_07.png
Binary file modified examples/advect_fourier1D/model_SNL02/plt_training_08.png
Diff not rendered.
Diff not rendered.
Binary file modified examples/advect_fourier1D/model_SNL02/results/evolve_p_case1.png
Binary file modified examples/advect_fourier1D/model_SNL02/results/evolve_u1_case1.png
Binary file modified examples/advect_fourier1D/model_SNL02/results/train_e1_case1.png
Binary file modified examples/advect_fourier1D/model_SNL02/results/train_p_case1.png
Binary file modified examples/advect_fourier1D/model_SNL02/results/train_u1_case1.png
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_SNL02/statistics_01.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 0.0009772343 || TEST LOSS: 0.0009772343
Epoch [0 / 0] TRAIN LOSS: 0.0007200601 || TEST LOSS: 0.0007200601
#======================#
TRAIN STATS
R² score: 0.9991466
MSE (mean SQR error): 0.00083424407
RMSE (Root MSE): 0.028883284
MAE (mean ABS error): 0.014805639
maxAE (max ABS error) 0.16087812
Lipschitz bound: 40810.707
R² score: 0.9994409
MSE (mean SQR error): 0.0005576967
RMSE (Root MSE): 0.023615602
MAE (mean ABS error): 0.012563733
maxAE (max ABS error) 0.17540269
Lipschitz bound: 53477.0

#======================#
#======================#
TEST STATS
R² score: 0.9991466
MSE (mean SQR error): 0.000834244
RMSE (Root MSE): 0.028883282
MAE (mean ABS error): 0.01480564
maxAE (max ABS error) 0.16087812
Lipschitz bound: 40810.707
R² score: 0.9994409
MSE (mean SQR error): 0.0005576967
RMSE (Root MSE): 0.023615602
MAE (mean ABS error): 0.012563732
maxAE (max ABS error) 0.17540269
Lipschitz bound: 53477.0

#======================#
26 changes: 13 additions & 13 deletions examples/advect_fourier1D/model_SNL02/statistics_02.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 8.4616084e-5 || TEST LOSS: 8.4616084e-5
Epoch [0 / 0] TRAIN LOSS: 8.14772e-5 || TEST LOSS: 8.14772e-5
#======================#
TRAIN STATS
R² score: 0.99997973
MSE (mean SQR error): 2.0244268e-5
RMSE (Root MSE): 0.0044993632
MAE (mean ABS error): 0.0028748154
maxAE (max ABS error) 0.05264136
Lipschitz bound: 807.3472
R² score: 0.9999823
MSE (mean SQR error): 1.7681878e-5
RMSE (Root MSE): 0.0042049824
MAE (mean ABS error): 0.0026894633
maxAE (max ABS error) 0.04067433
Lipschitz bound: 819.42206

#======================#
#======================#
TEST STATS
R² score: 0.99997973
MSE (mean SQR error): 2.024427e-5
RMSE (Root MSE): 0.0044993632
MAE (mean ABS error): 0.0028748154
maxAE (max ABS error) 0.05264136
Lipschitz bound: 807.3472
R² score: 0.9999823
MSE (mean SQR error): 1.7681878e-5
RMSE (Root MSE): 0.0042049824
MAE (mean ABS error): 0.0026894636
maxAE (max ABS error) 0.04067433
Lipschitz bound: 819.42206

#======================#
Loading

0 comments on commit 90a768f

Please sign in to comment.