Skip to content
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

Returning the Hessian of the empirical risk #30

Open
tranlm opened this issue Dec 8, 2017 · 3 comments
Open

Returning the Hessian of the empirical risk #30

tranlm opened this issue Dec 8, 2017 · 3 comments

Comments

@tranlm
Copy link

tranlm commented Dec 8, 2017

Hi,

I came across your implementation of the Influence Function and am interested in separately grabbing the Hessian that is needed for the calculations. Is there a way for me to grab it without having to break apart the code?

thank you very much.

@zironycho
Copy link
Member

Hi tranlm,

Did you mean Hessian vector product like here? If you are using python tensorflow, you have to import python module and just call as below.

from tensorflow.python.ops.gradients_impl import _hessian_vector_product

_hessian_vector_product(ys, xs, v)

In our code in here for Hessian vector product.

Thank you.

@tranlm
Copy link
Author

tranlm commented Dec 8, 2017

Thanks!

I noticed while looking into this that the original authors have also released their code implementation of the paper. Have you noticed any implementation differences?

@teradepth
Copy link
Member

Our implementation is basically not much different. The original one only considered output layer as trainable parameters to calculate influence and it only applied to their experimental networks, but ours use all layers and is more general applicable to any networks, and more optimized and easy to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants