p2pfl.learning.frameworks.simulation packageΒΆ

Module for the efficient parallel local simulation of the learning process (based on Ray).

p2pfl.learning.frameworks.simulation.try_init_learner_with_ray(learner, model, data, addr, aggregator)[source]ΒΆ

Create a learner instance.

Parameters:
  • learner (Type[Learner]) – The learner class.

  • model (P2PFLModel) – The model of the learner.

  • data (P2PFLDataset) – The data of the learner.

  • addr (str) – The address of the learner.

  • aggregator (Aggregator) – The aggregator that we are using.

Return type:

Learner

SubmodulesΒΆ