ewc.pytorch icon indicating copy to clipboard operation
ewc.pytorch copied to clipboard

question for the formular in _diag_fisher() function

Open HYJrrr opened this issue 6 years ago • 2 comments

Hello, I have read your code and it is really helpful for me to understand the logic of EWC. I still have a doubt for the input of nll_loss in _diag_fisher function. Should the label be the ground truth, not the output of the model? Thanks for your code again and looking forward to your answer!

HYJrrr avatar Aug 27 '19 11:08 HYJrrr

Hi, indeed, I don't remember why I did so because it was two years ago I implemented this.

moskomule avatar Aug 27 '19 15:08 moskomule

Hello, I have read your code and it is really helpful for me to understand the logic of EWC. I still have a doubt for the input of nll_loss in _diag_fisher function. Should the label be the ground truth, not the output of the model? Thanks for your code again and looking forward to your answer!

Hi. I think both way can get the fisher information matrix, while it is called empirical Fisher if you use the provided GT label for computing the matrix.

Albert0147 avatar Oct 02 '19 15:10 Albert0147