Documentation for Satraining Module¶
SATraining
¶
Bases: SAMComponent
SATraining is a Situational Awareness (SA) component responsible for enhancing the training process in Distributed Federated Learning (DFL) environments by leveraging context-awareness and environmental knowledge.
This component dynamically instantiates a training policy based on the configuration, allowing the system to adapt training strategies depending on the local topology, node behavior, or environmental constraints.
Attributes:
Name | Type | Description |
---|---|---|
_config |
dict
|
Configuration dictionary containing parameters and references. |
_sar |
SAReasoner
|
Reference to the shared situational reasoner. |
_trainning_policy |
Instantiated training policy strategy. |
Source code in nebula/core/situationalawareness/awareness/satraining/satraining.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 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 |
|
sar
property
¶
Returns the current instance of the SAReasoner.
tp
property
¶
Returns the currently active training policy instance.
__init__(config)
¶
Initialize the SATraining component with a given configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
dict
|
Configuration dictionary containing: - 'addr': Node address. - 'verbose': Verbosity flag. - 'sar': Reference to the SAReasoner instance. - 'training_policy': Training policy name to be used. |
required |
Source code in nebula/core/situationalawareness/awareness/satraining/satraining.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
init()
async
¶
Initialize the training policy with the current known neighbors from the SAReasoner. This setup enables the policy to make informed decisions based on local topology.
Source code in nebula/core/situationalawareness/awareness/satraining/satraining.py
66 67 68 69 70 71 72 73 |
|
sa_component_actions()
async
¶
Periodically called action of the SA component to evaluate the current scenario. This invokes the evaluation logic defined in the training policy to adapt behavior.
Source code in nebula/core/situationalawareness/awareness/satraining/satraining.py
75 76 77 78 79 80 81 |
|