Skip to content

Commit

Permalink
updated figures
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed Jul 3, 2024
1 parent 5da0ff2 commit 55ee6f8
Show file tree
Hide file tree
Showing 344 changed files with 915 additions and 906 deletions.
14 changes: 7 additions & 7 deletions experiments_SNFROM/advect_fourier1D/advect1d_compare.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ modelfile_INR = joinpath(modeldir_INR, "model_07.jld2")
# small DT
#==================#

evolve_kw = (;)

# evolve_kw = (;)
#
# 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")

#
# outdir_SNW = joinpath(modeldir_SNW, "dt")
# outdir_SNL = joinpath(modeldir_SNL, "dt")
# outdir_CAE = joinpath(modeldir_CAE, "dt")
#
# evolve_CAE(prob, datafile, modelfile_CAE, 1; rng, outdir = outdir_CAE, evolve_kw...,)
# evolve_SNF(prob, datafile, modelfile_SNL, 1; rng, outdir = outdir_SNL, evolve_kw..., device)
# evolve_SNF(prob, datafile, modelfile_SNW, 1; rng, outdir = outdir_SNW, evolve_kw..., device)
Expand Down
14 changes: 7 additions & 7 deletions experiments_SNFROM/advect_fourier2D/advect2d_compare.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ device = Lux.gpu_device()

_Ib, Ib_ = [1,], [1,]
Ix = Colon()
_It = Colon() # LinRange(1, 1000, 100) .|> Base.Fix1(round, Int32)
_It = Colon()
makedata_kws = (; Ix, _Ib, Ib_, _It, It_ = :)
case = Ib_[1]

Expand Down Expand Up @@ -71,19 +71,21 @@ modelfile_SNL = joinpath(modeldir_SNL, "model_08.jld2")
# small DT
#==================#

evolve_kw = (;)

T = 4.0f0
Nt = 500
It = LinRange(1, Nt, 50) .|> Base.Fix1(round, Int)
It = LinRange(1, Nt, 100) .|> Base.Fix1(round, Int)
data_kws = (; Ix = :, It)
evolve_kw = (; Δt = T, data_kws, adaptive = false)

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

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

#==================#
# make figures
Expand All @@ -94,6 +96,4 @@ modeldirs = (; modeldir_PCA, modeldir_CAE, modeldir_SNL, modeldir_SNW,)
labels = ("POD ($(l_pca) modes)", "CAE", "SNFL (ours)", "SNFW (ours)")

p1, p2, p3 = compare_plots(modeldirs, labels, @__DIR__, casename, 1, grid; ifdt = true)

#======================================================#
nothing
Binary file modified experiments_SNFROM/advect_fourier2D/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 experiments_SNFROM/advect_fourier2D/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 experiments_SNFROM/advect_fourier2D/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.
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.
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_01.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 0.0029734694 || TEST LOSS: 0.0029734694
Epoch [0 / 0] TRAIN LOSS: 0.0020595256 || TEST LOSS: 0.0020595256
#======================#
TRAIN STATS
R² score: 0.99703854
MSE (mean SQR error): 0.0029734697
RMSE (Root MSE): 0.05452953
MAE (mean ABS error): 0.016322719
maxAE (max ABS error) 1.4621406
Lipschitz bound: 10.904998
R² score: 0.99796486
MSE (mean SQR error): 0.0020595256
RMSE (Root MSE): 0.045381997
MAE (mean ABS error): 0.025189243
maxAE (max ABS error) 1.0718122
Lipschitz bound: 8.045933

#======================#
#======================#
TEST STATS
R² score: 0.99703854
MSE (mean SQR error): 0.0029734697
RMSE (Root MSE): 0.05452953
MAE (mean ABS error): 0.016322719
maxAE (max ABS error) 1.4621406
Lipschitz bound: 10.904998
R² score: 0.99796486
MSE (mean SQR error): 0.0020595256
RMSE (Root MSE): 0.045381997
MAE (mean ABS error): 0.025189243
maxAE (max ABS error) 1.0718131
Lipschitz bound: 8.045933

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_02.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 0.00029988593 || TEST LOSS: 0.00029988593
Epoch [0 / 0] TRAIN LOSS: 0.00020403549 || TEST LOSS: 0.00020403549
#======================#
TRAIN STATS
R² score: 0.9997002
MSE (mean SQR error): 0.00029988593
RMSE (Root MSE): 0.017317213
MAE (mean ABS error): 0.008229137
maxAE (max ABS error) 0.5808008
Lipschitz bound: 10.91308
R² score: 0.99979573
MSE (mean SQR error): 0.00020403549
RMSE (Root MSE): 0.014284099
MAE (mean ABS error): 0.00924143
maxAE (max ABS error) 0.45991397
Lipschitz bound: 8.121122

#======================#
#======================#
TEST STATS
R² score: 0.9997002
MSE (mean SQR error): 0.00029988593
RMSE (Root MSE): 0.017317213
MAE (mean ABS error): 0.008229137
maxAE (max ABS error) 0.580801
Lipschitz bound: 10.91308
R² score: 0.99979573
MSE (mean SQR error): 0.0002040355
RMSE (Root MSE): 0.014284099
MAE (mean ABS error): 0.00924143
maxAE (max ABS error) 0.45991397
Lipschitz bound: 8.121122

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_03.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 0.00011359906 || TEST LOSS: 0.00011359906
Epoch [0 / 0] TRAIN LOSS: 9.8129814e-5 || TEST LOSS: 9.8129814e-5
#======================#
TRAIN STATS
R² score: 0.99988633
MSE (mean SQR error): 0.000113599075
RMSE (Root MSE): 0.010658287
MAE (mean ABS error): 0.006186129
maxAE (max ABS error) 0.32720518
Lipschitz bound: 10.919991
R² score: 0.9999019
MSE (mean SQR error): 9.8129814e-5
RMSE (Root MSE): 0.00990605
MAE (mean ABS error): 0.006679354
maxAE (max ABS error) 0.27329254
Lipschitz bound: 8.155139

#======================#
#======================#
TEST STATS
R² score: 0.99988633
MSE (mean SQR error): 0.00011359906
RMSE (Root MSE): 0.010658286
MAE (mean ABS error): 0.0061861286
maxAE (max ABS error) 0.32720518
Lipschitz bound: 10.919991
R² score: 0.9999019
MSE (mean SQR error): 9.812982e-5
RMSE (Root MSE): 0.00990605
MAE (mean ABS error): 0.006679354
maxAE (max ABS error) 0.27329254
Lipschitz bound: 8.155139

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_04.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 8.594278e-5 || TEST LOSS: 8.594278e-5
Epoch [0 / 0] TRAIN LOSS: 6.8454756e-5 || TEST LOSS: 6.8454756e-5
#======================#
TRAIN STATS
R² score: 0.999914
MSE (mean SQR error): 8.594279e-5
RMSE (Root MSE): 0.009270533
MAE (mean ABS error): 0.0054321955
maxAE (max ABS error) 0.3112049
Lipschitz bound: 10.925883
R² score: 0.9999315
MSE (mean SQR error): 6.845476e-5
RMSE (Root MSE): 0.008273739
MAE (mean ABS error): 0.005285323
maxAE (max ABS error) 0.20288658
Lipschitz bound: 8.207073

#======================#
#======================#
TEST STATS
R² score: 0.999914
MSE (mean SQR error): 8.594279e-5
RMSE (Root MSE): 0.009270533
MAE (mean ABS error): 0.0054321955
maxAE (max ABS error) 0.3112049
Lipschitz bound: 10.925883
R² score: 0.9999315
MSE (mean SQR error): 6.845476e-5
RMSE (Root MSE): 0.008273739
MAE (mean ABS error): 0.005285322
maxAE (max ABS error) 0.20288682
Lipschitz bound: 8.207073

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_05.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 6.688948e-5 || TEST LOSS: 6.688948e-5
Epoch [0 / 0] TRAIN LOSS: 2.435499e-5 || TEST LOSS: 2.435499e-5
#======================#
TRAIN STATS
R² score: 0.99993306
MSE (mean SQR error): 6.688947e-5
RMSE (Root MSE): 0.008178598
MAE (mean ABS error): 0.0048254705
maxAE (max ABS error) 0.24520469
Lipschitz bound: 10.932542
R² score: 0.9999756
MSE (mean SQR error): 2.435499e-5
RMSE (Root MSE): 0.0049350774
MAE (mean ABS error): 0.0032817796
maxAE (max ABS error) 0.12281889
Lipschitz bound: 8.365065

#======================#
#======================#
TEST STATS
R² score: 0.99993306
MSE (mean SQR error): 6.688947e-5
RMSE (Root MSE): 0.008178598
MAE (mean ABS error): 0.0048254705
maxAE (max ABS error) 0.24520469
Lipschitz bound: 10.932542
R² score: 0.9999756
MSE (mean SQR error): 2.4354988e-5
RMSE (Root MSE): 0.0049350774
MAE (mean ABS error): 0.0032817796
maxAE (max ABS error) 0.12281889
Lipschitz bound: 8.365065

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_CAE02/statistics_06.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 2.5805164e-5 || TEST LOSS: 2.5805164e-5
Epoch [0 / 0] TRAIN LOSS: 1.9993677e-5 || TEST LOSS: 1.9993677e-5
#======================#
TRAIN STATS
R² score: 0.99997413
MSE (mean SQR error): 2.5805164e-5
RMSE (Root MSE): 0.0050798785
MAE (mean ABS error): 0.0029294745
maxAE (max ABS error) 0.18168092
Lipschitz bound: 10.997159
R² score: 0.99998
MSE (mean SQR error): 1.9993677e-5
RMSE (Root MSE): 0.004471429
MAE (mean ABS error): 0.0030059323
maxAE (max ABS error) 0.1181311
Lipschitz bound: 8.383216

#======================#
#======================#
TEST STATS
R² score: 0.99997413
MSE (mean SQR error): 2.5805164e-5
RMSE (Root MSE): 0.0050798785
MAE (mean ABS error): 0.0029294745
maxAE (max ABS error) 0.18168092
Lipschitz bound: 10.997159
R² score: 0.99998
MSE (mean SQR error): 1.9993677e-5
RMSE (Root MSE): 0.004471429
MAE (mean ABS error): 0.0030059323
maxAE (max ABS error) 0.11813104
Lipschitz bound: 8.383216

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/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.3540018e-5 || TEST LOSS: 1.3540018e-5
Epoch [0 / 0] TRAIN LOSS: 1.3164835e-5 || TEST LOSS: 1.3164835e-5
#======================#
TRAIN STATS
R² score: 0.99998647
MSE (mean SQR error): 1.3540018e-5
RMSE (Root MSE): 0.0036796764
MAE (mean ABS error): 0.0022022345
maxAE (max ABS error) 0.11903941
Lipschitz bound: 11.050547
R² score: 0.9999868
MSE (mean SQR error): 1.3164835e-5
RMSE (Root MSE): 0.0036283375
MAE (mean ABS error): 0.002427296
maxAE (max ABS error) 0.1040419
Lipschitz bound: 8.457631

#======================#
#======================#
TEST STATS
R² score: 0.99998647
MSE (mean SQR error): 1.3540018e-5
RMSE (Root MSE): 0.0036796764
MAE (mean ABS error): 0.0022022347
maxAE (max ABS error) 0.11903932
Lipschitz bound: 11.050547
R² score: 0.9999868
MSE (mean SQR error): 1.3164834e-5
RMSE (Root MSE): 0.0036283375
MAE (mean ABS error): 0.002427296
maxAE (max ABS error) 0.10404184
Lipschitz bound: 8.457631

#======================#
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified experiments_SNFROM/advect_fourier2D/model_PCA08/test_1.png
Binary file modified experiments_SNFROM/advect_fourier2D/model_PCA08/train_1.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/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.0070366175 || TEST LOSS: 0.0070366175
Epoch [0 / 0] TRAIN LOSS: 0.0024810433 || TEST LOSS: 0.0024810433
#======================#
TRAIN STATS
R² score: 0.9944822
MSE (mean SQR error): 0.0052379044
RMSE (Root MSE): 0.07237337
MAE (mean ABS error): 0.020284738
maxAE (max ABS error) 1.9994946
Lipschitz bound: 3.5264284e7
R² score: 0.9981732
MSE (mean SQR error): 0.0018691762
RMSE (Root MSE): 0.04323397
MAE (mean ABS error): 0.012734476
maxAE (max ABS error) 1.0760345
Lipschitz bound: 1.0985549e7

#======================#
#======================#
TEST STATS
R² score: 0.9944822
MSE (mean SQR error): 0.0052379044
RMSE (Root MSE): 0.07237337
MAE (mean ABS error): 0.020284738
maxAE (max ABS error) 1.9994946
Lipschitz bound: 3.5264284e7
R² score: 0.9981732
MSE (mean SQR error): 0.0018691762
RMSE (Root MSE): 0.04323397
MAE (mean ABS error): 0.012734475
maxAE (max ABS error) 1.0760345
Lipschitz bound: 1.0985549e7

#======================#
26 changes: 13 additions & 13 deletions experiments_SNFROM/advect_fourier2D/model_SNL02/statistics_02.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Epoch [0 / 0] TRAIN LOSS: 0.00027254588 || TEST LOSS: 0.00027254588
Epoch [0 / 0] TRAIN LOSS: 0.00016081602 || TEST LOSS: 0.00016081602
#======================#
TRAIN STATS
R² score: 0.99988174
MSE (mean SQR error): 0.000117768264
RMSE (Root MSE): 0.010852109
MAE (mean ABS error): 0.0042917975
maxAE (max ABS error) 0.44214633
Lipschitz bound: 1.6606484e6
R² score: 0.9999434
MSE (mean SQR error): 5.638156e-5
RMSE (Root MSE): 0.0075087654
MAE (mean ABS error): 0.002912594
maxAE (max ABS error) 0.31302643
Lipschitz bound: 858499.5

#======================#
#======================#
TEST STATS
R² score: 0.99988174
MSE (mean SQR error): 0.00011776827
RMSE (Root MSE): 0.010852109
MAE (mean ABS error): 0.004291798
maxAE (max ABS error) 0.44214633
Lipschitz bound: 1.6606484e6
R² score: 0.9999434
MSE (mean SQR error): 5.6381563e-5
RMSE (Root MSE): 0.0075087654
MAE (mean ABS error): 0.002912594
maxAE (max ABS error) 0.31302643
Lipschitz bound: 858499.5

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

0 comments on commit 55ee6f8

Please sign in to comment.