@@ -35,7 +35,7 @@ u0[1] = 1
3535
3636# Set up the SSA simulations
3737jsys = convert (JumpSystem, rn, combinatoric_ratelaw= false )
38- dprob = DiscreteProblem (jsys, u0, (0.0 , last (ts)), zeros (Float64, numreactionparams (rn) ))
38+ dprob = DiscreteProblem (jsys, u0, (0.0 , last (ts)), zeros (Float64, 18 ))
3939jprob = JumpProblem (jsys, dprob, Direct (), save_positions= (false , false ))
4040
4141# full-length mRNA (A + B + BC1 + ... + BC5 + C + D + E + F)
@@ -86,9 +86,9 @@ plt = plot(plt1, plt2, layout=l, size=(330, 120), bottom_margin=0Plots.mm, top_m
8686# Predicted vs true moments
8787# ---------------------------------------------------------------------------------------------------
8888
89- # Plotting points only for t=1000
89+ # Plotting points only for t=500
9090ind = 4
91- m = 4
91+ m = 8
9292m_NN = mean .(Distribution .(Ref (model), X_test[ind: m: end ]))
9393var_NN = var .(Distribution .(Ref (model), X_test[ind: m: end ]))
9494
@@ -126,4 +126,4 @@ plt2 = annotate!(plt2, [(-1.5, -1.5, Plots.text("×10⁴", 6, :black, :center))]
126126plot (plt1, plt2, size= (260 , 130 ),
127127 left_margin= - 1 Plots. mm, bottom_margin= 0 Plots. mm, top_margin= - 1 Plots. mm, right_margin= 0 Plots. mm)
128128
129- # savefig(joinpath(MODEL_DIR, "true_vs_predict_moments.svg"))
129+ savefig (joinpath (MODEL_DIR, " true_vs_predict_moments.svg" ))
0 commit comments