Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9ac7796 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
harisorgn committed Jan 11, 2025
1 parent 385f9c3 commit 66a045a
Show file tree
Hide file tree
Showing 20 changed files with 7,065 additions and 7,230 deletions.
4 changes: 2 additions & 2 deletions assets/literate/DCM.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
finally we compose the simulation model

````julia:ex5
@named simmodel = system_from_graph(g, split=false)
@named simmodel = system_from_graph(g, split=false);
````

## Run the simulation and plot the results
Expand Down Expand Up @@ -226,7 +226,7 @@ for (i, idx) in enumerate(CartesianIndices(A_prior))
end
end
# Avoid simplification of the model in order to be able to exclude some parameters from fitting
@named fitmodel = system_from_graph(g, simplify=false)
@named fitmodel = system_from_graph(g, simplify=false);
````

With the function `changetune` we can provide a dictionary of parameters whose tunable flag should be changed, for instance set to false to exclude them from the optimization procedure.
Expand Down
4 changes: 2 additions & 2 deletions assets/literate/DCM_script.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for idx in CartesianIndices(A_true)
add_edge!(g, regions[idx[1]] => regions[idx[2]], weight=A_true[idx[1], idx[2]])
end

@named simmodel = system_from_graph(g, split=false)
@named simmodel = system_from_graph(g, split=false);

tspan = (0.0, 512.0)
prob = SDEProblem(simmodel, [], tspan)
Expand Down Expand Up @@ -104,7 +104,7 @@ for (i, idx) in enumerate(CartesianIndices(A_prior))
end
end
# Avoid simplification of the model in order to be able to exclude some parameters from fitting
@named fitmodel = system_from_graph(g, simplify=false)
@named fitmodel = system_from_graph(g, simplify=false);

untune = Dict(A[3] => false, A[7] => false)
fitmodel = changetune(fitmodel, untune) # 3 and 7 are not present in the simulation model
Expand Down
190 changes: 95 additions & 95 deletions assets/pages/CS_circuit/code/output/cort_asc_stack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
198 changes: 116 additions & 82 deletions assets/pages/CS_circuit/code/output/cort_meanfield.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
275 changes: 136 additions & 139 deletions assets/pages/CS_circuit/code/output/cort_power.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
212 changes: 106 additions & 106 deletions assets/pages/CS_circuit/code/output/cort_stack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 51 additions & 51 deletions assets/pages/CS_circuit/code/output/wta_stack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 57 additions & 57 deletions assets/pages/CS_circuit/code/output/wta_wta_stack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/pages/DCM/code/ex17.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ for (i, idx) in enumerate(CartesianIndices(A_prior))
end
end
# Avoid simplification of the model in order to be able to exclude some parameters from fitting
@named fitmodel = system_from_graph(g, simplify=false)
@named fitmodel = system_from_graph(g, simplify=false);
2 changes: 1 addition & 1 deletion assets/pages/DCM/code/ex5.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file was generated, do not modify it. # hide
@named simmodel = system_from_graph(g, split=false)
@named simmodel = system_from_graph(g, split=false);
59 changes: 1 addition & 58 deletions assets/pages/DCM/code/output/ex17.res
Original file line number Diff line number Diff line change
@@ -1,58 +1 @@
Model fitmodel:
Subsystems (9): see hierarchy(fitmodel)
r1β‚Šei
r1β‚Šlm
r1β‚Šbm
r2β‚Šei
r2β‚Šlm
r2β‚Šbm
r3β‚Šei
r3β‚Šlm
r3β‚Šbm
Equations (27):
27 standard: see equations(r3β‚Šbm)
Unknowns (27): see unknowns(r3β‚Šbm)
r1β‚Šeiβ‚Šu(t): ext_input
r1β‚Šlmβ‚Šx(t) [defaults to 0.0]
r1β‚Šlmβ‚Šjcn(t)
r1β‚Šbmβ‚Šs(t) [defaults to 1.0]
r1β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r1β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r1β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r1β‚Šbmβ‚Šjcn(t)
r1β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
r2β‚Šeiβ‚Šu(t): ext_input
r2β‚Šlmβ‚Šx(t) [defaults to 0.0]
r2β‚Šlmβ‚Šjcn(t)
r2β‚Šbmβ‚Šs(t) [defaults to 1.0]
r2β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r2β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r2β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r2β‚Šbmβ‚Šjcn(t)
r2β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
r3β‚Šeiβ‚Šu(t): ext_input
r3β‚Šlmβ‚Šx(t) [defaults to 0.0]
r3β‚Šlmβ‚Šjcn(t)
r3β‚Šbmβ‚Šs(t) [defaults to 1.0]
r3β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r3β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r3β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r3β‚Šbmβ‚Šjcn(t)
r3β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
Parameters (16): see parameters(r3β‚Šbm)
C [defaults to 0.0625]
A1 [defaults to 0.0]
w_r1β‚Šlm_r1β‚Šbm [defaults to 1.0]
A2 [defaults to 0.0148102]
A3 [defaults to -0.00716553]
A4 [defaults to 0.00345049]
A5 [defaults to 0.0]
w_r2β‚Šlm_r2β‚Šbm [defaults to 1.0]
A6 [defaults to 0.00429191]
A7 [defaults to -0.0122152]
A8 [defaults to 0.00437472]
A9 [defaults to 0.0]
w_r3β‚Šlm_r3β‚Šbm [defaults to 1.0]
lnΞΊ
lnΟ„
lnΟ΅
nothing
61 changes: 1 addition & 60 deletions assets/pages/DCM/code/output/ex5.res
Original file line number Diff line number Diff line change
@@ -1,60 +1 @@
Model simmodel:
Equations (21):
21 standard: see equations(simmodel)
Unknowns (21): see unknowns(simmodel)
r1β‚Šouβ‚Šx(t) [defaults to 0.0]
r1β‚Šlmβ‚Šx(t) [defaults to 0.0]
r1β‚Šbmβ‚Šs(t) [defaults to 1.0]
r1β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r1β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r1β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r2β‚Šouβ‚Šx(t) [defaults to 0.0]
r2β‚Šlmβ‚Šx(t) [defaults to 0.0]
r2β‚Šbmβ‚Šs(t) [defaults to 1.0]
r2β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r2β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r2β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r3β‚Šouβ‚Šx(t) [defaults to 0.0]
r3β‚Šlmβ‚Šx(t) [defaults to 0.0]
r3β‚Šbmβ‚Šs(t) [defaults to 1.0]
r3β‚Šbmβ‚Šlnu(t) [defaults to 0.0]
r3β‚Šbmβ‚ŠlnΞ½(t) [defaults to 0.0]
r3β‚Šbmβ‚Šlnq(t) [defaults to 0.0]
r1β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
r2β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
r3β‚Šbmβ‚Šbold(t) [defaults to 0.0]: measurement
Parameters (33): see parameters(simmodel)
r3β‚Šbmβ‚ŠlnΟ„ [defaults to 0.0]
r1β‚Šouβ‚ŠΟ„ [defaults to 1.0]
r2β‚Šouβ‚ŠΞΌ [defaults to 0.0]
r2β‚Šbmβ‚ŠlnΟ„ [defaults to 0.0]
r3β‚Šouβ‚ŠΞΌ [defaults to 0.0]
r3β‚Šbmβ‚ŠlnΞΊ [defaults to 0.0]
r2β‚Šbmβ‚ŠlnΞΊ [defaults to 0.0]
r2β‚Šouβ‚ŠΟƒ [defaults to 0.1]
r3β‚Šouβ‚ŠΟ„ [defaults to 1.0]
r3β‚Šbmβ‚ŠlnΟ΅ [defaults to 0.0]
r2β‚Šbmβ‚ŠlnΟ΅ [defaults to 0.0]
r1β‚Šouβ‚ŠΞΌ [defaults to 0.0]
r2β‚Šouβ‚ŠΟ„ [defaults to 1.0]
r1β‚Šbmβ‚ŠlnΟ΅ [defaults to 0.0]
r1β‚Šbmβ‚ŠlnΞΊ [defaults to 0.0]
r1β‚Šbmβ‚ŠlnΟ„ [defaults to 0.0]
r3β‚Šouβ‚ŠΟƒ [defaults to 0.1]
r1β‚Šouβ‚ŠΟƒ [defaults to 0.1]
w_r1β‚Šou_r1β‚Šlm [defaults to 0.0625]
w_r2β‚Šlm_r1β‚Šlm [defaults to 0.4]
w_r3β‚Šou_r3β‚Šlm [defaults to 0.0625]
w_r1β‚Šlm_r1β‚Šlm [defaults to -0.5]
w_r2β‚Šlm_r3β‚Šlm [defaults to -0.3]
w_r1β‚Šlm_r3β‚Šlm [defaults to 0.0]
w_r1β‚Šlm_r2β‚Šlm [defaults to -2.0]
w_r1β‚Šlm_r1β‚Šbm [defaults to 1.0]
w_r2β‚Šou_r2β‚Šlm [defaults to 0.0625]
w_r2β‚Šlm_r2β‚Šbm [defaults to 1.0]
w_r3β‚Šlm_r3β‚Šlm [defaults to -0.5]
w_r3β‚Šlm_r1β‚Šlm [defaults to 0.0]
w_r3β‚Šlm_r3β‚Šbm [defaults to 1.0]
w_r2β‚Šlm_r2β‚Šlm [defaults to -0.5]
w_r3β‚Šlm_r2β‚Šlm [defaults to 0.2]
Observed (9): see observed(simmodel)
nothing
2 changes: 1 addition & 1 deletion assets/pages/blox_connections/code/output/ex6.res
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Main.FD_SANDBOX_15604780526313532720.IzhNeuron(ModelingToolkit.ODESystem(0x0000000000001ffd, Symbolics.Equation[Differential(t)(V(t)) ~ 145 + jcn - u(t) + 5V(t) + 0.04(V(t)^2), Differential(t)(u(t)) ~ a*(-u(t) + b*V(t))], t, SymbolicUtils.BasicSymbolic{Real}[V(t), u(t), jcn], SymbolicUtils.BasicSymbolic{Real}[a, b, V_reset, d, ΞΈ], nothing, Dict{Any, Any}(:a => a, :b => b, :d => d, :V => V(t), :jcn => jcn, :u => u(t), :ΞΈ => ΞΈ, :V_reset => V_reset), Any[], Symbolics.Equation[], Base.RefValue{Vector{Symbolics.Num}}(Symbolics.Num[]), Base.RefValue{Any}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Any}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Matrix{Symbolics.Num}}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Matrix{Symbolics.Num}}(Matrix{Symbolics.Num}(undef, 0, 0)), :izh, "", ModelingToolkit.ODESystem[], Dict{Any, Any}(a => 0.02, V_reset => -50, d => 2, u(t) => -13, V(t) => -65.0, b => 0.2, ΞΈ => 30), Dict{Any, Any}(), nothing, nothing, Symbolics.Equation[], nothing, nothing, nothing, ModelingToolkit.SymbolicContinuousCallback[], ModelingToolkit.SymbolicDiscreteCallback[condition: V(t) > ΞΈ
Main.FD_SANDBOX_15604780526313532720.IzhNeuron(ModelingToolkit.ODESystem(0x0000000000001fe9, Symbolics.Equation[Differential(t)(V(t)) ~ 145 + jcn - u(t) + 5V(t) + 0.04(V(t)^2), Differential(t)(u(t)) ~ a*(-u(t) + b*V(t))], t, SymbolicUtils.BasicSymbolic{Real}[V(t), u(t), jcn], SymbolicUtils.BasicSymbolic{Real}[a, b, V_reset, d, ΞΈ], nothing, Dict{Any, Any}(:a => a, :b => b, :d => d, :V => V(t), :jcn => jcn, :u => u(t), :ΞΈ => ΞΈ, :V_reset => V_reset), Any[], Symbolics.Equation[], Base.RefValue{Vector{Symbolics.Num}}(Symbolics.Num[]), Base.RefValue{Any}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Any}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Matrix{Symbolics.Num}}(Matrix{Symbolics.Num}(undef, 0, 0)), Base.RefValue{Matrix{Symbolics.Num}}(Matrix{Symbolics.Num}(undef, 0, 0)), :izh, "", ModelingToolkit.ODESystem[], Dict{Any, Any}(a => 0.02, V_reset => -50, d => 2, u(t) => -13, V(t) => -65.0, b => 0.2, ΞΈ => 30), Dict{Any, Any}(), nothing, nothing, Symbolics.Equation[], nothing, nothing, nothing, ModelingToolkit.SymbolicContinuousCallback[], ModelingToolkit.SymbolicDiscreteCallback[condition: V(t) > ΞΈ
affects:
u(t) ~ d + u(t)
V(t) ~ V_reset
Expand Down
Loading

0 comments on commit 66a045a

Please sign in to comment.