AzureMLLogger
- class health_ml.utils.AzureMLLogger[source]
Bases:
pytorch_lightning.loggers.base.LightningLoggerBase
A Pytorch Lightning logger that stores metrics in the current AzureML run. If the present run is not inside AzureML, nothing gets logged.
Methods Summary
Return the experiment object associated with this logger.
log_hyperparams
(params)Record hyperparameters.
log_metrics
(metrics[, step])Records metrics.
name
()Return the experiment name.
version
()Return the experiment version.
Methods Documentation
- log_hyperparams(params)[source]
Record hyperparameters.
- Parameters
params (
Any
) –Namespace
containing the hyperparametersargs – Optional positional arguments, depends on the specific logger being used
kwargs – Optional keywoard arguments, depends on the specific logger being used
- Return type
None
- log_metrics(metrics, step=None)[source]
Records metrics. This method logs metrics as as soon as it received them. If you want to aggregate metrics for one specific step, use the
agg_and_log_metrics()
method.- Parameters
metrics (
Dict
[str
,float
]) – Dictionary with metric names as keys and measured quantities as valuesstep (
Optional
[int
]) – Step number at which the metrics should be recorded
- Return type
None