An implementation of Elastic Weight Consolidation (EWC), proposed in James Kirkpatrick et al. Overcoming catastrophic forgetting in neural networks 2016(10.1073/pnas.1611835114).
- demo.ipynb demonstrates EWC with supervised learning.
An implementation of EWC with PyTorch
An implementation of Elastic Weight Consolidation (EWC), proposed in James Kirkpatrick et al. Overcoming catastrophic forgetting in neural networks 2016(10.1073/pnas.1611835114).
Hi:
I also want to implement the EWC in pytorch by myself.
But according to the Counterpart Tensorflow implementation:
https://github.com/ariseff/overcoming-catastrophic/blob/master/experiment.ipynb
their accuracy is so high.
Why does the Pytorch implementation has only 0.7 in your implementation.
Many thanks
Shixian Wen
Think https://github.com/moskomule/ewc.pytorch/blob/master/utils.py#L41 is the right way or not.
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,moskomule! Great work!
I want to know what version of pytorch did you use? Because I can't reproduce your results. I am wondering if the problem appeared on the version of pytorch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.