Created
April 23, 2020 13:52
-
-
Save khannay/e26deffaaf8afde4c41f162cbca077ba to your computer and use it in GitHub Desktop.
LV adjoint function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function predict_adjoint(param) # Our 1-layer neural network | |
prob=ODEProblem(model,[1.0,0.0],(tstart,tend), model_params) | |
Array(concrete_solve(prob,Tsit5(),param[1:2],param[3:end],saveat=tstart:sampling:tend, abstol=1e-8,reltol=1e-6)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment