We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69bd1ac commit 5830978Copy full SHA for 5830978
byzfl/benchmark/train.py
@@ -206,7 +206,9 @@ def start_training(params):
206
if training_algorithm_name not in ["DSGD", "FedAvg"]:
207
raise ValueError(f"Training algorithm {training_algorithm_name} not supported, supported algorithms are 'DSGD' and 'FedAvg'")
208
209
-
+ if training_algorithm_name == "FedAvg" and attack_name == "LabelFlipping":
210
+ raise ValueError("FedAvg does not support Label Flipping attack.")
211
+
212
if training_algorithm_name == "FedAvg":
213
214
training_algorithm_parameters = params_manager.get_training_algorithm_parameters()
0 commit comments