This is the Pytorch code of the paper entitled "A Data Poisoning Resistible and Privacy Protection Federated Learning Mechanism For Ubiquitous IoT".
FedAVG_learner controls the global training process FedAVG_client controls the client side FedAVG_main starts the backdoor attack
server_side controls the server side client_side controls the client side main starts the global training process