Kaynağa Gözat

Delete client_selection.py

JayZhang42 2 yıl önce
ebeveyn
işleme
7962ef838a
1 değiştirilmiş dosya ile 0 ekleme ve 10 silme
  1. 0 10
      fed_utils/client_selection.py

+ 0 - 10
fed_utils/client_selection.py

@@ -1,10 +0,0 @@
-import numpy as np
-
-
-def client_selection(num_clients, client_selection_frac, client_selection_strategy, other_info=None):
-    np.random.seed(other_info)
-    if client_selection_strategy == "random":
-        num_selected = max(int(client_selection_frac * num_clients), 1)
-        selected_clients_set = set(np.random.choice(np.arange(num_clients), num_selected, replace=False))
-
-    return selected_clients_set