Skip to content

Commit 3a403f5

Browse files
proper data
1 parent ad9affa commit 3a403f5

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

SEIR_exposure/seir_exposure.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ S,E,I,R,N,D,C = eachrow(X)
206206
F,β0,α,κ,μ,_,γ,d,λ = p_
207207
L = β.(0:tspan[end],β0,D,N,κ,α).*S.*I./N
208208
= vec(ann([S./N I D./N]',res2_uode.minimizer))
209+
= [S./N I D./N]'
209210

210211
scatter(L,title="Estimated vs Expected Exposure Term",label="True Exposure")
211212
plot!(L̂,label="Estimated Exposure")
@@ -224,7 +225,7 @@ println(Ψ_direct.basis)
224225
Ψ_ideal = SInDy(X[2:4, 5:end], L[5:end], basis, thresholds, opt = opt, maxiter = 50000) # Succeed
225226
println(Ψ_ideal.basis)
226227
# Test on uode derivative data
227-
Ψ = SInDy(noisy_data[2:4, 2:end], L̂[2:end], basis, thresholds, opt = opt, maxiter = 10000, normalize = true, denoise = true) # Succeed
228+
Ψ = SInDy(X̂[:, 2:end], L̂[2:end], basis, thresholds, opt = opt, maxiter = 10000, normalize = true, denoise = true) # Succeed
228229
println.basis)
229230

230231
# Build a ODE for the estimated system
19 Bytes
Binary file not shown.
-4.76 KB
Loading

0 commit comments

Comments
 (0)