GithubHelp home page GithubHelp logo

h8rtv / fl-tp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codertylor/fl-tp

0.0 0.0 0.0 699 KB

FL-TP: Federated Learning-based Vehicle Trajectory Prediction Algorithm against Cyberattacks

Python 100.00%

fl-tp's Introduction

FL-TP

FL-TP: Federated Learning-based Vehicle Trajectory Prediction Algorithm against Cyberattacks

Requirments Install all the packages from requirments.txt

Python3 Pytorch Torchvision

Data

The data set can be downloaded from the official website of VeRemi(https://veremi-dataset.github.io/), and generated in the makedata folder.

The data Sample could be seen in the url {https://github.com/CoderTylor/FL-TP/tree/main/FL-TP}

Running the experiments

The baseline experiment trains the model in the Fed-Avg.

To run the code:

python fltp_main.py --model=LSTM --epochs=10 --user=4/10/20

Options The default values for various paramters parsed to the experiment are given in options.py. Details are given some of those parameters:

--gpu: Default: None (runs on CPU). Can also be set to the specific gpu id.

--epochs: Number of rounds of training.

--lr: Learning rate set to 0.01 by default.

--seed: Random Seed. Default set to 1.

--num_users:Number of users. Default is 100.

--local_ep: Number of local training epochs in each user. Default is 10.

--local_bs: Batch size of local updates in each user. Default is 10.

Please cite our paper if the source code can help you.

@article{zhe2023cyber,
  title={Federated Learning-based Vehicle Trajectory Prediction against Cyberattacks},
  author={Zhe Wang, Tingkai Yan},
  journal={arXiv preprint arXiv:2306.08566},
  year={2023}
}

Experiment Result

  • 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.