Skip to content

Implemented a George pipeline for the spurious correlations problem using the SpuCo package.

Notifications You must be signed in to change notification settings

wimaan3/spurious_george_MNIST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Spurious Correlation in MNIST with George Pipeline

This project implements the George pipeline for addressing the spurious correlations problem using the SpuCo package. We train a deep learning model on the SpuCoMNIST dataset to improve the model's robustness against spurious correlations.

Workflow

  1. We train a Convolutional Neural Network (CNN) model (LeNet) using Empirical Risk Minimization (ERM) on the SpuCoMNIST dataset.
  2. After ERM training, we cluster the model’s outputs using the Cluster class from SpuCo's group_inference module.
  3. We then perform group-balanced training using the GroupBalanceBatchERM method to ensure equal representation of each group during training.
  4. Finally, we evaluate the model's predictions on the MNIST digits and output the accuracy.

Installation Instructions

Before running the project, ensure you have the required dependencies. Follow the steps below to set up your environment:

1. Install Python 3.x

Ensure that you have Python 3.x installed. You can download it from the official Python website: Download Python.

2. Install Required Libraries

Run the following command to install the necessary libraries:

pip install torch spuco tqdm pandas

About

Implemented a George pipeline for the spurious correlations problem using the SpuCo package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published