facebookresearch / Agem

Licence: mit
Official implementation of the Averaged Gradient Episodic Memory (A-GEM) in Tensorflow

Projects that are alternatives of or similar to Agem

Interactive machine learning
IPython widgets, interactive plots, interactive machine learning
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Lmkor
Pretrained Language Models for Korean
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
19 udacity dsa
Data Structures & Algorithms Nanodegree Program from Udacity
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Benchmarks
Comparison tools
Stars: ✭ 139 (-1.42%)
Mutual labels:  jupyter-notebook
Pysankey
create sankey diagrams with matplotlib
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Data Structure And Algorithm Using Python
In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data. (Using Python 3)
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook
Popmusicmaker
Pop Music Maker built on HMM and Random Forest-like structure. Inspired by the desire to build my own model can serve as alternative to LSTMs / deep learning in generating pop music. Website is currently down due to costs incurred.
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Stanford cs231n 2019
Solutions and comments to assignments for 2019 Stanford's course on convolutional neural networks
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook
Scipy Tutorial 2015
Geospatial data tutorial
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Vaal
Variational Adversarial Active Learning (ICCV 2019)
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Practical Machine Learning With Python
Master the essential skills needed to recognize and solve complex real-world problems with Machine Learning and Deep Learning by leveraging the highly popular Python Machine Learning Eco-system.
Stars: ✭ 1,868 (+1224.82%)
Mutual labels:  jupyter-notebook
Nlpaug
Data augmentation for NLP
Stars: ✭ 2,761 (+1858.16%)
Mutual labels:  jupyter-notebook
Data science blogs
A repository to keep track of all the code that I end up writing for my blog posts.
Stars: ✭ 139 (-1.42%)
Mutual labels:  jupyter-notebook
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (-1.42%)
Mutual labels:  jupyter-notebook
Swift4tf
A set of notebooks explaining swift for tensorflow optimized to run in Google Collaboratory.
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook
Recotour
A tour through recommendation algorithms in python [IN PROGRESS]
Stars: ✭ 140 (-0.71%)
Mutual labels:  jupyter-notebook
Python Youtube Code
Stars: ✭ 139 (-1.42%)
Mutual labels:  jupyter-notebook
Quantum Native Dojo
量子コンピュータ初学者のための自習教材
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook
Book
This book serves as an introduction to a whole new way of thinking systematically about geographic data, using geographical analysis and computation to unlock new insights hidden within data.
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook
Hpo2nas Tutorial Cvpr Eccv2020
Hands-on Tutorial on Automated Deep Learning
Stars: ✭ 141 (+0%)
Mutual labels:  jupyter-notebook

Efficient Lifelong Learning with A-GEM

This is the official implementation of the Averaged Gradient Episodic Memory (A-GEM) and Experience Replay with Tiny Memories in Tensorflow.

Requirements

TensorFlow >= v1.9.0.

Training

To replicate the results of the paper on a particular dataset, execute (see the Note below for downloading the CUB and AWA datasets):

$ ./replicate_results_iclr19.sh <DATASET> <THREAD-ID> <JE>

Example runs are:

$ ./replicate_results_iclr19.sh MNIST 3      /* Train PNN and A-GEM on MNIST */
$ ./replicate_results_iclr19.sh CUB 1 1      /* Train JE models of RWALK and A-GEM on CUB */

Note

For CUB and AWA experiments, download the dataset prior to running the above script. Run following for downloading the datasets:

$ ./download_cub_awa.sh

The plotting code is provided under the folder plotting_code/. Update the paths in the plotting code accordingly.

Experience Replay

The code provides an implementation of experience replay (ER) with reservoir sampling on MNIST and CIFAR datasets. To run the ER experiments execute the following script:

$ ./replicate_results_er.sh

When using this code, please cite our papers:

@inproceedings{AGEM,
  title={Efficient Lifelong Learning with A-GEM},
  author={Chaudhry, Arslan and Ranzato, Marc’Aurelio and Rohrbach, Marcus and Elhoseiny, Mohamed},
  booktitle={ICLR},
  year={2019}
}

@article{chaudhryER_2019,
  title={Continual Learning with Tiny Episodic Memories},
  author={Chaudhry, Arslan and Rohrbach, Marcus and Elhoseiny, Mohamed and Ajanthan, Thalaiyasingam and Dokania, Puneet K and Torr, Philip HS and Ranzato, Marc’Aurelio},
  journal={arXiv preprint arXiv:1902.10486, 2019},
  year={2019}
}

@inproceedings{chaudhry2018riemannian,
  title={Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigence},
  author={Chaudhry, Arslan and Dokania, Puneet K and Ajanthan, Thalaiyasingam and Torr, Philip HS},
  booktitle={ECCV},
  year={2018}
}

Questions/ Bugs

  • For questions, contact the author Arslan Chaudhry ([email protected]).
  • Feel free to open the bugs if anything is broken.

License

This source code is released under The MIT License found in the LICENSE file in the root directory of this source tree.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].