Skip to content

How to calculate FIM for EWC ? #779

Answered by AntonioCarta
DragonRed18 asked this question in Q&A
Discussion options

You must be logged in to vote

Avalanche does an average at the end:

for _, imp in importances:
    imp /= float(len(dataloader))

while the colab version does not. Apart from that, they are basically equivalent.

Notice that, to really compute the FIM, you should have batch_size=1. In practice, batch_size>1 works as well and it is much more efficient.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DragonRed18
Comment options

Answer selected by DragonRed18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants