p2pfl.learning.frameworks.callback moduleΒΆ

P2PFL Callbacks for federated learning.

class p2pfl.learning.frameworks.callback.P2PFLCallback[source]ΒΆ

Bases: ABC

A callback for the P2PFL learning process.

The callback can generate additional information that can be used by the aggregator to affect the learning process.

In order to affect the learning process, the callback must be registered with the CallbackFactory.

get_info()[source]ΒΆ

Get the additional information stored in the callback.

Return type:

Any

abstract static get_name()[source]ΒΆ

Get the name of the callback.

Return type:

str

set_info(additional_info)[source]ΒΆ

Set the additional information stored in the callback.

Return type:

None