Source code for the paper entitled "Joint Mean-Field Game and Multiagent Asynchronous Advantage Actor-Critic for Edge Intelligence-based IoT Malware Propagation Defense" submitted to IEEE Transactions on Dependable and Secure Computing for possible publication.
- Linux
- Python 3.6+
- gym
- TensorFlow 1.x
Reference:https://github.com/geek-ai/MAgent
Comparative metrics:Average rewards, Successful defense numbers, Total rewards
Comparison Algorithms : A2C, MFGA2C, A3C, MFGA3C
-
A2C :
python train_battle.py --algo ac
-
MFGA2C :
python train_battle.py --algo mfac
-
A3C :
python ./MFA3C/a3c.py
-
MFGA3C :
python ./MFA3C/mfa3c.py
Modify the learning_rate pass parameter of the A3C_Network class in the mfa3c.py file
-
MFGA3C :
python ./MFA3C/mfa3c.py
Comparison Algorithms : A2C, MFGA2C, A3C, MFGA3C
-
A2C :
python train_battle.py --algo ac --mapsize 45
-
MFGA2C :
python train_battle.py --algo mfac --mapsize 45
-
A3C :
python ./MFA3C/a3c.py --mapsize 45
-
MFGA3C :
python ./MFA3C/mfa3c.py --mapsize 45
-
cd to the magent environment configuration directory
cd / User Home Directory /anaconda3/envs/ User env name /lib/python3.6/site-packages/magent/builtin/config/
-
Modify battle.py file
vim battle.py
-
Change the boolean value of minimap_mode to False
Comparison Algorithms : A2C, MFGA2C, A3C, MFGA3C
-
A2C :
python train_battle.py --algo ac
-
MFGA2C :
python train_battle.py --algo mfac
-
A3C :
python ./MFA3C/a3c.py
-
MFGA3C :
python ./MFA3C/mfa3c.py