Giter Site home page Giter Site logo

Bayesian Structure Adaptation for Continual Learning

This is a PyTorch implementation of the Bayesian Structure Adaptation for Continual Learning.

Requirements

  • Keras 2.2.5
  • PyTorch 1.3.1
  • torchvision 0.4.2
  • scipy 1.3.1
  • sklearn 0.21.3
  • numpy 1.17.2
  • matplotlib 3.1.1
  • gzip, pickle, tarfile, urllib, PIL, math, copy
  • A cuda enabled 12 GB GPU (GeForce GTX 1080 Ti) / Equivalent Devices / Google Colab

Running the experiments

To run all experiments together (might take a while) use : sh run_all.sh

Individual experiments can be run using pyhton3 experiment_name.py

  • Experiment names starts with : npbcl_xxx.py
  • Copy and save the stored experiment models using : echo -e "saves\ncache/destination" | python3 save.py
  • Copy and save the generative experiment images : echo -e "Gens\ncache/destination" | python3 save.py

Running on Google Colaboratory

  • Create a new notebook on colab and clone this repo : ! git clone https://github.com/npbcl/NPBCL.git
  • Change working directory to icml20 folder : os.chdir('NPBCL')
  • Run all experiments : sh run_all.sh

Results

If you ran all experiments using sh file. You can see all experiment results in cache folder. After individual experiment the results are stored in saves folder and Gens folder.

npbcl's Projects

continual-learning icon continual-learning

PyTorch implementation of various methods for continual learning (XdG, EWC, online EWC, SI, LwF, DGR, DGR+distill, RtF, iCaRL).

npbcl icon npbcl

Bayesian Structure Adaptation for Continual Learning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.