Logger — lightning 2.5.1.post0 documentation (original) (raw)

class lightning.fabric.loggers.Logger[source]

Bases: ABC

Base class for experiment loggers.

finalize(status)[source]

Do any processing that is necessary to finalize an experiment.

Parameters:

status (str) – Status that the experiment finished with (e.g. success, failed, aborted)

Return type:

None

log_graph(model, input_array=None)[source]

Record model graph.

Parameters:

Return type:

None

abstract log_hyperparams(params, *args, **kwargs)[source]

Record hyperparameters.

Parameters:

Return type:

None

abstract log_metrics(metrics, step=None)[source]

Records metrics. This method logs metrics as soon as it received them.

Parameters:

Return type:

None

save()[source]

Save log data.

Return type:

None

property group_separator_: str_

Return the default separator used by the logger to group the data into subfolders.

property log_dir_: Optional[str]_

Return directory the current version of the experiment gets saved, or None if the logger does not save data locally.

abstract property name_: Optional[str]_

Return the experiment name.

property root_dir_: Optional[str]_

Return the root directory where all versions of an experiment get saved, or None if the logger does not save data locally.

abstract property version_: Optional[Union[int, str]]_

Return the experiment version.