code: def on_train_begin(self, pbar:PBar, metrics_names:Collection[str], **kwargs:Any)->None:
          "Initialize recording status at beginning of training."
          self.pbar = pbar
          self.names = ['epoch', 'train_loss'] if self.no_val else ['epoch', 'train_loss', 'valid_loss']
          self.metrics_names = metrics_names
          self.names += self.metrics_names
          if hasattr(self, '_added_met_names'): self.names += self._added_met_names
          if self.add_time: self.names.append('time')
          if not self.silent: self.pbar.write(self.names, table=True)
          self.losses,self.val_losses,self.lrs,self.moms,self.metrics,self.nb_batches = [],[],[],[],[],[f on_train_begin(self, pbar:PBar, metrics_names:Collection[str], **kwargs:Any)->None:
          "Initialize recording status at beginning of training."
          self.pbar = pbar
          self.names = ['epoch', 'train_loss'] if self.no_val else ['epoch', 'train_loss', 'valid_loss']
          self.metrics_names = metrics_names
          self.names += self.metrics_names
          if hasattr(self, '_added_met_names'): self.names += self._added_met_names
          if self.add_time: self.names.append('time')
          if not self.silent: self.pbar.write(self.names, table=True)
          self.losses,self.val_losses,self.lrs,self.moms,self.metrics,self.nb_batches = [],[],[],[],[],[]
docs: Initialize recording status at beginning of training.