Right, this makes sense. But could you please give me more instructions?
Then how about making it in a function like form. But i can’t find good a way to
make data transmission concrete.
I can’t find a good way to exactly access my time budget. What i can do is
only using a stupid loop like below because i don’t know if it’s possible to pass
res_10.time_run attribute into callback as a judgment of whether to store the
interested loss value.
And all the code i’ve seen they just use normal callback in sciml_train, is it possible to
use other self-defined cb like VectorContinuousCallback() in sciml_train?
@time for i in 1:50
res_10 = DiffEqFlux.sciml_train(
p -> bac_10(p; abstol=1e-2, reltol=1e-2),
maxiters = 1,
cb = basic_bac_callback
time += res_10.time_run