Documentation for Defaultmodelhandler Module¶
DefaultModelHandler
¶
Bases: ModelHandler
Provides the initial default model.
This handler returns the baseline model with default weights, typically used at the start of the federation or when no suitable model offers have been received from peers.
Inherits from
ModelHandler: Provides the base interface for model operations.
Source code in nebula/core/situationalawareness/discovery/modelhandlers/defaultmodelhandler.py
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 |
|
get_model(model)
async
¶
Returns:
Type | Description |
---|---|
model with default weights |
Source code in nebula/core/situationalawareness/discovery/modelhandlers/defaultmodelhandler.py
47 48 49 50 51 52 53 |
|
pre_process_model()
¶
no pre-processing defined
Source code in nebula/core/situationalawareness/discovery/modelhandlers/defaultmodelhandler.py
55 56 57 58 59 |
|
set_config(config)
¶
Source code in nebula/core/situationalawareness/discovery/modelhandlers/defaultmodelhandler.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|