noggin.logger.LiveMetric.from_dict¶
-
classmethod
LiveMetric.
from_dict
(metrics_dict: Dict[str, numpy.ndarray])[source]¶ The inverse of
LiveMetric.to_dict
. Given a dictionary of live-metric data, constructs an instance of LiveMetric.Parameters: - metrics_dict: Dict[str, ndarray]
Stores the state of the live-metric instance being created.
Returns: - noggin.LiveMetric
Notes
The encoded dictionary stores:
'batch_data' -> ndarray, shape-(N,) 'epoch_data' -> ndarray, shape-(M,) 'epoch_domain' -> ndarray, shape-(M,) 'cnt_since_epoch' -> int 'total_weighting' -> float 'running_weighted_sum' -> float 'name' -> str