-
Notifications
You must be signed in to change notification settings - Fork 26
Adapt with grad, jvp, etc #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think you can just give a On another note, I think |
Ah nice. Any chance we could document this new API? Or is it documented and I've just missed it?
If I've understood correctly (that the Python implementation computes directional derivatives w.r.t. the full function, rather than estimating the jacobian separately and then computing its product with the vector in question) then I agree. This is probably also quite a bit more performant. Maybe open a separate issue about it? |
Yeah, the new API has not been documented yet. That still needs to be done. It was introduced with the recent PR introducing adaptation.
Actually, I just realised that a |
It is documented, see https://invenia.github.io/FDM.jl/latest/pages/api.html#FDM.central_fdm. EDIT: Except the link to |
Ah, sorry, you're completely right that it is documented! I meant that we might want to add an example usage to the README. |
So AFAICT I have been playing around with precomputing them, to see if it would give performance improvement. but I can't seem to trigger adapt anymore... |
fixed enough I think now via memoization in #73 |
Is it clear how to use the fancy new
adapt
kwarg withgrad
,jvp
, and the like? Or do we need to extend them to cope with it?The text was updated successfully, but these errors were encountered: