项目介绍

oqadiSAK/fl-ids 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,目前获得 35 个 Star、4 次 Fork。

仓库全名
oqadiSAK/fl-ids
Star 数
35
Fork 数
4
未关闭 Issue
1

README 摘要

Federated Learning for Intrusion Detection System Overview This project utilizes the power of Federated Learning to create an Intrusion Detection System. It employs the Flower framework (GitHub - adap/flower) for federated learning and the UNSWNB15 dataset for intrusion detection. The core of this system is a Neural Network (NN) model. Setup & Installation To get the project up and running, follow these steps: 1…

完整内容见 GitHub 原始 README 或本页 。

常见问题

fl-ids 用什么语言开发?

主要使用 Python 编写,目前有 35 个 Star。

如何获取 fl-ids 的源码?

可以直接克隆仓库:git clone https://github.com/oqadiSAK/fl-ids.git,默认分支为 main;安装与运行步骤见仓库 README。

fl-ids 最近还在维护吗?

仓库最近一次更新为 2024年1月13日,当前有 1 个未关闭 Issue;Star 数为 35,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Federated Learning for Intrusion Detection System using the Flower framework and UNSW_NB15 dataset.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
45
价值分
22
活跃状态
活跃

语言占比

Python

贡献者

README

Federated Learning for Intrusion Detection System

Overview

This project utilizes the power of Federated Learning to create an Intrusion Detection System. It employs the Flower framework (GitHub - adap/flower) for federated learning and the UNSW_NB15 dataset for intrusion detection. The core of this system is a Neural Network (NN) model.

Setup & Installation

To get the project up and running, follow these steps:

  1. Download the UNSW_NB15 dataset.
  2. Place the UNSW_NB15_training-set.csv and UNSW_NB15_testing-set.csv files in the project’s data folder.

Simulation

There are 3 options to execute simulation:

  1. Manually

    • To initiate the server, use the command:
      python server.py
      
    • To launch the clients, execute the following command for each client:
      python client.py
      

    Note: To accurately simulate the project, at least three clients are needed to satisfy the min_fit_clients, min_evaluate_clients, and min_available_clients configuration.

    Note: The server uses port 8080 as default. If you want to run it on a different port, you may need to change it in both client.py and server.py.

  2. Using the simulation.py script

    • To run the simulation, use the command:
      python simulation.py
      
  3. Containerized simulation by running the Docker compose command

    • To run the simulation, use the command:
      docker-compose up --build
      

Also you can visualize the model’s architecture by generating a plot

  • To visualize the model’s structure, use:
    python utils/plot.py
    

Future Enhancements

  • Personalize datasets for each client instead of using a common sampled dataset.

评论

暂无评论