This repository contains implementations of several popular machine unlearning algorithms in PyTorch, as listed below:
Sincere appreciation to the authors of these popular machine unlearning algorithms for open-sourcing their code, greatly contributing to the success of this repository.
Before executing the project code, please prepare the Python environment according to the requirement.txt file. We set up the environment with python 3.9.12 and torch 2.0.0.
pip install -r requirement.txt1. Model Training
python train_main.py -dataset Cifar10 2. Unlearning
python unlearn_main.py -gpu -dataset Cifar10 -unlearn_class 0 -unlearn_method retrain -model_path Suggestions and opinions on this work (both positive and negative) are greatly welcomed. Please contact the author by sending an email to
winkent.ong at um.edu.my.
The project is open source under BSD-3 license (see the LICENSE file).
©2024 Universiti Malaya.