Skip to content

Instantly share code, notes, and snippets.

@khannay
Created April 23, 2020 14:46
Show Gist options
  • Save khannay/a1c65d9ecb6dfe97744e23d58ebe4a6d to your computer and use it in GitHub Desktop.
Save khannay/a1c65d9ecb6dfe97744e23d58ebe4a6d to your computer and use it in GitHub Desktop.
data_lorenz
# Generate some data to fit, and add some noise to it
data=predict_adjoint([1.0,0.0,0.0,10.0,28.0,8.0/3])
σN=0.05
data+=σN*randn(size(data))
function loss_adjoint(param)
prediction = predict_adjoint(param)
loss = sum(abs2,prediction - data)
loss
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment