declearn.optimizer.modules.ScaffoldAuxVar
Bases: AuxVar
AuxVar subclass for Scaffold.
- In Server -> Client direction,
state
should be specified. - In Client -> Server direction,
delta
should be specified.
Source code in declearn/optimizer/modules/_scaffold.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
aggregate_clients(val_a, val_b)
staticmethod
Custom aggregation rule for 'clients' field.
Source code in declearn/optimizer/modules/_scaffold.py
73 74 75 76 77 78 79 |
|
aggregate_state(val_a, val_b)
classmethod
Custom aggregation rule for 'state' field, raising when due.
Source code in declearn/optimizer/modules/_scaffold.py
81 82 83 84 85 86 87 88 89 90 91 |
|