Skip to content

TangerineTree/fed-dedup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Federated Learning Deduplication

This repository contains an implementation of federated learning (FL) with non-IID (non-identically distributed) data. It utilizes a convolutional neural network (CNN) model for image classification tasks, particularly focusing on the MNIST dataset.

Contents

Introduction

The project considers the scenario of local client data duplication for federated learning and achieves deduplication of local data for federated learning under non-independent distribution of data, which shortens the training time of local models.

Dependencies

This project requires the following dependencies:

  • Python 3.12.3
  • PyTorch
  • matplotlib
  • psutil

You can install the dependencies using pip:

pip install torch matplotlib psutil

Usage

To use this codebase, follow these steps:

1.Clone this repository to your local machine:

git clone https://github.com/TangerineTree/fed-dedup.git

2.Navigate to the cloned directory:

cd fed-dedup

3.Run the main script to start federated learning:

python3 fed_avg.py

Or you can open the folder in Pycharm and simply run fed_avg.py, make sure that you have already installed the dependencies.

Results

You can find the results of federated learning experiments in this section. Results include training time, CPU usage, memory usage, test accuracy, and loss curves.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages