| ... | ... | @@ -33,7 +33,13 @@ The Python Test Bed for Federated Learning Algorithms (PTB-FLA) API is provided |
|
|
|
- `odata`: The data of this node to be sent to the peer.
|
|
|
|
- **Return Value:** The data received from the peer.
|
|
|
|
- **Note:** If a node wants to skip the current time stamp, it must call `get1Meas` with `odata` set to `None`.
|
|
|
|
5. **Destructor: `PtbFla()`**
|
|
|
|
5. **Method: `getMeas(peerIds, odata)`**
|
|
|
|
- **Arguments:**
|
|
|
|
- `peerIds`: The list of peer node IDs.
|
|
|
|
- `odata`: The data of this node to be sent to the peer nodes.
|
|
|
|
- **Return Value:** The list of data received from peer nodes where each element of this list corresponds to the element in the same position of the list `peerIds`.
|
|
|
|
- **Note:** If a node wants to skip the current time stamp, it must call `getMeas` with `odata` set to `None`.
|
|
|
|
6. **Destructor: `PtbFla()`**
|
|
|
|
|
|
|
|
#### Class and Methods in the `mp_async_ptbfla` module (MPT-FLA API)
|
|
|
|
|
| ... | ... | @@ -66,7 +72,13 @@ The Python Test Bed for Federated Learning Algorithms (PTB-FLA) API is provided |
|
|
|
- `odata`: The data of this node to be sent to the peer.
|
|
|
|
- **Return Value:** The data received from the peer.
|
|
|
|
- **Note:** If a node wants to skip the current time stamp, it must await `get1Meas` with `odata` set to `None`.
|
|
|
|
6. **Destructor: `PtbFla()`**
|
|
|
|
6. **Method: `getMeas(peerIds, odata)`**
|
|
|
|
- **Arguments:**
|
|
|
|
- `peerIds`: The list of peer node IDs.
|
|
|
|
- `odata`: The data of this node to be sent to the peer nodes.
|
|
|
|
- **Return Value:** The list of data received from peer nodes where each element of this list corresponds to the element in the same position of the list `peerIds`.
|
|
|
|
- **Note:** If a node wants to skip the current time stamp, it must await `getMeas` with `odata` set to `None`.
|
|
|
|
7. **Destructor: `PtbFla()`**
|
|
|
|
|
|
|
|
#### Data Privacy
|
|
|
|
|
| ... | ... | |