Documentation for Stdmodelhandler Module¶
STDModelHandler
¶
Bases: ModelHandler
Handles the selection and acquisition of the most up-to-date model during the discovery phase of the federation process.
This handler choose the first model received.
Inherits from
ModelHandler: Provides the base interface for model operations.
Intended Use
Used during the initial, when a node discovers others and must align itself with the most recent global model state.
Source code in nebula/core/situationalawareness/discovery/modelhandlers/stdmodelhandler.py
5 6 7 8 9 10 11 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 |
|
accept_model(model)
¶
save only first model received to set up own model later
Source code in nebula/core/situationalawareness/discovery/modelhandlers/stdmodelhandler.py
42 43 44 45 46 47 48 49 |
|
get_model(model)
async
¶
Returns:
Type | Description |
---|---|
neccesary data to create trainer |
Source code in nebula/core/situationalawareness/discovery/modelhandlers/stdmodelhandler.py
51 52 53 54 55 56 57 58 59 |
|
pre_process_model()
¶
no pre-processing defined
Source code in nebula/core/situationalawareness/discovery/modelhandlers/stdmodelhandler.py
61 62 63 64 65 |
|
set_config(config)
¶
Source code in nebula/core/situationalawareness/discovery/modelhandlers/stdmodelhandler.py
28 29 30 31 32 33 34 35 36 37 38 39 40 |
|