DataPoisoning_FL
DataPoisoning_FL copied to clipboard
here, Malicious participants are not visible with mentioned settings. How to get output as in paper?
here, Malicious participants are not visible with mentioned settings. How to get output as in paper?
Originally posted by @AriesQa in https://github.com/git-disl/DataPoisoning_FL/issues/1#issuecomment-858541844
Hi, can you please post your configuration information for your experiments? I suspect this is due to some incorrect configuration.
hi, I have put path, but the result is not same as in paper.
Paths you need to put in.
MODELS_PATH = "/home/XYZ/Desktop/DataPoisoning_FL/3000_models" EXP_INFO_PATH = "/home/XYZ/Desktop/DataPoisoning_FL/logs/3000.log"
kindly tell me how to put POISONED_WORKER_IDS = [] manually?
Hi, can you please post your configuration information for your experiments? I suspect this is due to some incorrect configuration.
Ubuntu 20.04.2.0 LTS Python 3.8 PyTorch 1.8.1 torchvision 0.9.1 loguru 0.3.2 matplotlib 3.4.2 scikit-learn 0.24.2 numpy 1.19.5
In the arguments configuration, you can specify the number of poisoned workers that you would like to simulate in your experiment. You will need to set this attribute to a number larger than zero in order to see results similar to what I demonstrate in the paper.
With regards to identifying the poisoned worker IDs, these are available in the .log
file generated for each experiment, near the top. You should see a line that looks something like: Poisoned worker IDs: [...]
. The list of poisoned workers is available there, and you can copy and paste that into the defense script file.
In the arguments configuration, you can specify the number of poisoned workers that you would like to simulate in your experiment. You will need to set this attribute to a number larger than zero in order to see results similar to what I demonstrate in the paper.
With regards to identifying the poisoned worker IDs, these are available in the
.log
file generated for each experiment, near the top. You should see a line that looks something like:Poisoned worker IDs: [...]
. The list of poisoned workers is available there, and you can copy and paste that into the defense script file.
Thanks a lot for your response :)
I have run with defense.py:29: change it to CLASS_NUM = 1
I have tried it for 10 poisoned workers. Here is the result but scattered.
Hi, I wonder that have you got the correct result?
Hi, I did not get same results as in paper.
Hi all,
There are a number of reasons why you might be getting this output. In order to diagnose this further, I would need to see the complete configuration of the experiments, along with the poisoned worker ids, and non-poisoned worker IDs.
Hi, should I use my own defense model? This file doesn't have a defense model.
Hi,
I got a result that looks great.
I just modify the parameters that are mentioned in Readme, delete all result files and do some changes mentioned in the closed issue.