Line too long (106 > 79 characters):
16 def __init__(self, device, grouper, logged_metrics, logged_fields, schedulers, scheduler_metric_names,Line too long (82 > 79 characters):
21 - grouper (Grouper): defines groups for which we compute/log stats forLine too long (91 > 79 characters):
53 group_metrics, group_counts, worst_group_metric = m.compute_group_wise(Line too long (154 > 79 characters):
75 assert v.numel() == self.grouper.n_groups, "Current implementation deals only with group-wise statistics or a single-number statistic"Line too long (91 > 79 characters):
80 if not self._has_log: # since it is the first log entry, just save the current logLine too long (113 > 79 characters):
90 self.log_dict[k] = update_average(self.log_dict[k], self.log_dict[self.group_count_field], v,Line too long (114 > 79 characters):
93 self.log_dict[k] = update_average(self.log_dict[k], self.log_dict[self.count_field], v, count)Line too long (92 > 79 characters):
134 If a scheduler is updated based on a metric (SingleModelAlgorithm.scheduler_metric),Line too long (85 > 79 characters):
135 then it first looks for an entry in metrics_dict and then in its internal logLine too long (94 > 79 characters):
139 - log_access (bool): whether the scheduler_metric can be fetched from internal logLine too long (88 > 79 characters):
142 for scheduler, metric_name in zip(self.schedulers, self.scheduler_metric_names):Line too long (84 > 79 characters):
155 def _step_specific_scheduler(self, scheduler, metric_name, metrics, log_access):Line too long (92 > 79 characters):
160 - is_epoch (bool): epoch-wise update if set to True, batch-wise update otherwiseLine too long (105 > 79 characters):
161 - metric_name (str): name of the metric (key in metrics or log dictionary) to use for updatesLine too long (91 > 79 characters):
162 - metrics (dict): a dictionary of metrics that can beused for scheduler updatesLine too long (101 > 79 characters):
163 - log_access (bool): whether metrics from self.get_log() can be used to update schedulersLine too long (82 > 79 characters):
200 f'{metric.agg_metric_field}: {log[metric.agg_metric_field]:.3f}\n'