Skip to content

Commit 5c7c0fd

Browse files
committed
re-organize
1 parent a7f2ce9 commit 5c7c0fd

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ tmp_*
33
/Manifest.toml
44
.vscode
55
Manifest.toml
6-
.DS_Store
6+
.DS_Store
7+
*.csv

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Chain = "8be319e6-bccf-4806-a6f7-6fae938471bc"
99
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
1010
DataFrameMacros = "75880514-38bc-4a95-a458-c2aea5a3a702"
1111
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
12-
DimensionalData = "0703355e-b756-11e9-17c0-8b28908087d0"
1312
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1413
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1514
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
@@ -27,9 +26,8 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2726
AxisKeys = "0.2"
2827
Chain = "0.6"
2928
ChainRulesCore = "1.25.1"
30-
DataFrames = "1"
3129
DataFrameMacros = "0.4"
32-
DimensionalData = "0.29"
30+
DataFrames = "1"
3331
Flux = "0.16"
3432
ForwardDiff = "1.0.1"
3533
Lux = "1.12.4"

projects/RbQ10/Project.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[deps]
2+
AlgebraOfGraphics = "cbdf2221-f076-402e-a563-3d30da359d67"
3+
AxisKeys = "94b1ba4f-4ee9-5380-92f1-94cde586c3c5"
4+
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
5+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
6+
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
7+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
8+
EasyHybrid = "61bb816a-e6af-4913-ab9e-91bff2e122e3"
9+
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
10+
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
11+
LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623"
12+
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
13+
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
14+
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
15+
OptimizationOptimisers = "42dfb2eb-d2b4-4451-abcd-913932933ac1"
16+
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
17+
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

examples/Q10.jl renamed to projects/RbQ10/Q10.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ end
3737

3838
with_theme(theme_light()) do
3939
fig = Figure(; size = (1200, 600))
40-
ax_train = Axis(fig[1, 1], title = "training")
41-
ax_val = Axis(fig[2, 1], title = "validation")
40+
ax_train = Makie.Axis(fig[1, 1], title = "training")
41+
ax_val = Makie.Axis(fig[2, 1], title = "validation")
4242
lines!(ax_train, out.ŷ_train[:], color=:orangered, label = "prediction")
4343
lines!(ax_train, out.y_train[:], color=:dodgerblue, label ="observation")
4444
# validation
@@ -51,7 +51,7 @@ end
5151

5252
with_theme(theme_light()) do
5353
fig = Figure(; size = (1200, 300))
54-
ax = Axis(fig[1,1], title = "Loss",
54+
ax = Makie.Axis(fig[1,1], title = "Loss",
5555
yscale=log10, xscale=log10
5656
)
5757
lines!(ax, out.train_history, color=:orangered, label = "train")
@@ -69,7 +69,7 @@ ŷ, RbQ10_st = LuxCore.apply(RbQ10, ds_k, out.ps, out.st)
6969

7070
with_theme(theme_light()) do
7171
fig = Figure(; size = (1200, 600))
72-
ax_train = Axis(fig[1, 1], title = "full time series")
72+
ax_train = Makie.Axis(fig[1, 1], title = "full time series")
7373
lines!(ax_train, ŷ[:], color=:orangered, label = "prediction")
7474
lines!(ax_train, yobs_all[:], color=:dodgerblue, label ="observation")
7575
axislegend(ax_train; position=:lt)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ opt_prob = OptimizationProblem(opt_func, ps_ca, dataloader)
5555

5656
epochs = 25
5757
res_adam = solve(opt_prob, Optimisers.Adam(0.001); callback, epochs)
58+
5859
# res_shopia = solve(opt_prob, Optimization.Sophia(); callback, maxiters=epochs)
5960

6061
# ! finetune a bit with L-BFGS

0 commit comments

Comments
 (0)