fl_server_ai.trainer.events.base ¶
Classes:
| Name | Description |
|---|---|
ModelTrainerEvent | Abstract base class for a model trainer event. |
Classes¶
ModelTrainerEvent ¶
Bases: ABC
flowchart TD
fl_server_ai.trainer.events.base.ModelTrainerEvent[ModelTrainerEvent]
click fl_server_ai.trainer.events.base.ModelTrainerEvent href "" "fl_server_ai.trainer.events.base.ModelTrainerEvent"
Abstract base class for a model trainer event.
Subclassed by:
- API Reference
fl_server_aitrainerevents
- API Reference
fl_server_aitrainer
Methods:
| Name | Description |
|---|---|
__init__ | Initialize the event with the given trainer. |
handle | Handle the event. |
next | Proceed with the next event. |
Attributes:
| Name | Type | Description |
|---|---|---|
trainer | The trainer that the event is associated with. | |
training | The training that the event is associated with. |
Source code in fl_server_ai/trainer/events/base.py
Attributes¶
Functions¶
__init__ ¶
__init__(trainer: ModelTrainer)
Initialize the event with the given trainer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| ModelTrainer | The trainer that the event is associated with. | required |