MolecularDiffusion.core.meter¶
Attributes¶
Classes¶
Meter for recording metrics and training progress. |
Module Contents¶
- class MolecularDiffusion.core.meter.Meter(log_interval=100, silent=False, logger=None)¶
Bases:
objectMeter for recording metrics and training progress.
- Parameters:
- log(record, category='train/batch')¶
Log a record.
- set_epoch(epoch_id)¶
Set the epoch counter for resuming from a checkpoint.
This method properly pads the internal time and epoch2batch lists to handle the case where training is resumed from an intermediate epoch.
- Parameters:
epoch_id (int) – The epoch to resume from.
- step()¶
Step an epoch for this meter.
Instead of manually invoking
step(), it is suggested to use the following line>>> for epoch in meter(num_epoch): >>> # do something
- batch_id = 0¶
- epoch2batch = [0]¶
- epoch_id = 0¶
- log_interval = 100¶
- logger = None¶
- records¶
- silent = False¶
- time¶
- MolecularDiffusion.core.meter.logger¶