Coder Social home page Coder Social logo

02456---repository-for-causal-representation-learning-for-out-of-distribution-generalization's Introduction

Repository for Causal Representation Learning For Out-Of-Distribution Generalization

About this repo

This repository was a part of the final hand-in for course no. 02456 - Deep Learning at the Technical University of Denmark.

We attempt to recreate the results of Lu et al 2022 in which they have created and implemented the iCaRL algorithm to gurantee out-of-distribution generalization.

Requirements

In order to run the jupyter notebooks you must install the following packages

  • Seaborn
  • Matplotlib
  • Scikit-image
  • Scikit-learn
  • Pytorch
  • Numpy

These packages can be installed either via git | pip.

We recommend setting up a virtual enviroment - Read more here

The classification of CMNIST is computationally heavy - thus we recommend training with a GPU. The requirements installer install pytorch cuda.

For automaticly installing the required packages please enter the following in a terminal:

$ pip install -r requirements.txt

R packages

The PC algorithm works from R - Requirering additional packages. More can be found here

we recommend installing BioCManager to install plugins for R to work with the pcalg package.

Additional info

Authors

  • Morten Johnsen (s184334)
  • Peter Emil Carstensen (s184332)
  • Jacob Bendsen (s184328)
  • Marie Pedersen (s174329)
  • Frederik Larsen (s174159)

Reproducing our results

To reproduce our results please run run the following files inside the code folder:

  • CMNIST_main.ipynb
  • Synthetic_main.ipynb

To create the CMNIST data

Please run dataloader.py

02456---repository-for-causal-representation-learning-for-out-of-distribution-generalization's People

Contributors

morten-johnsen avatar peetzie avatar peterckbs avatar mariespedersen avatar jbbendsen avatar

Watchers

 avatar  avatar

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.