GithubHelp home page GithubHelp logo

nneurotransmitterr / aai-project-mnist-stable-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 62.82 MB

CSE5001 Artificial Intelligence 2023 Fall Final Project: Train a classifier for modified MNIST with unstable (spurious) features.

License: Other

Jupyter Notebook 93.31% Python 6.69%

aai-project-mnist-stable-classifier's Introduction

AAI Fall 2023 Project: Train a Stable MNIST Classifier

Train a classifier for modified MNIST with unstable (spurious) features.

How to use

  1. Install the requirements in requirements.txt.
  2. Extract the data to the processed_data/ folder.
  3. Run the test script with python test.py.

Optional

  • Inspect data with data_inspection.ipynb.
  • Run the training script with python main.py.

Directory Structure

aai-project-mnist-stable-classifier/
├── processed_data/
│   ├── train/
│   ├── test/
│   └── val/
├── models/
│   ├── CNN.py
│   ├── MLP.py
│   └── OCNN.py
├── saved_models/
│   ├── mlp_10000_20240106.pth
│   └── OriginalMNISTClassifier.pth
├── data_inspection.ipynb
├── OddMNIST.py
├── main.py
├── test.py
├── results.txt
├── requirements.txt
├── LICENSE
└── README.md

References

Codes for these papers are used in this project:

  1. InvariantRiskMinimization
@article{InvariantRiskMinimization,
    title={Invariant Risk Minimization},
    author={Arjovsky, Martin and Bottou, L{\'e}on and Gulrajani, Ishaan and Lopez-Paz, David},
    journal={arXiv},
    year={2019}
}

aai-project-mnist-stable-classifier's People

Contributors

nneurotransmitterr avatar abaofromcug avatar

Watchers

 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.