p2pfl.learning.frameworks.pytorch.lightning_logger moduleΒΆ

Lightning Logger for P2PFL.

class p2pfl.learning.frameworks.pytorch.lightning_logger.FederatedLogger(addr)[source]ΒΆ

Bases: Logger

Pytorch Lightning Logger for Federated Learning. Handles local training loggin.

Parameters:

node_name – Name of the node.

finalize(status)[source]ΒΆ

Finalize the logger.

Return type:

None

log_hyperparams(params)[source]ΒΆ

Log hyperparameters.

Return type:

None

log_metrics(metrics, step)[source]ΒΆ

Log metrics (in a pytorch format).

Return type:

None

property name: NoneΒΆ

Name of the logger.

save()[source]ΒΆ

Save the logger.

Return type:

None

property version: NoneΒΆ

Version of the logger.