p2pfl.learning.frameworks.learner_factory moduleΒΆ
P2PFLCallback factory.
- class p2pfl.learning.frameworks.learner_factory.LearnerFactory[source]ΒΆ
Bases:
object
Factory for creating learners based on the model framework.
- classmethod create_learner(model)[source]ΒΆ
Create a learner based on the model framework.
- Parameters:
model (
P2PFLModel
) β The model to encapsulate.- Return type:
Type
[Learner
]