Line too long (104 > 79 characters):
32 # Taken from https://sumit-ghosh.com/articles/parsing-dictionary-key-value-pairs-kwargs-argparse-python/Line too long (104 > 79 characters):
90 logger.write(f' {grouper.group_str(group_idx)}: n = {group_counts[group_idx]:.0f}\n')Line too long (98 > 79 characters):
147 if self.mode == 'w' or (not os.path.exists(self.path)) or os.path.getsize(self.path) == 0:Line too long (80 > 79 characters):
189 name = config.dataset + '_' + config.algorithm + '_' + f"seed-{config.seed}"Line too long (107 > 79 characters):
190 wandb_runner = wandb.init(name=name, project=f"graphdg", entity='graphnet', config=config, reinit=True)Line too long (137 > 79 characters):
224 prefix = Path(config.log_dir) / f"{dataset_name}_{config.algorithm}_{config.parameter}_{config.model}_{replicate_str}_split-{split}_"Line too long (123 > 79 characters):
232 prefix = Path(config.log_dir) / f"{dataset_name}_{config.algorithm}_{config.parameter}_{config.model}_{replicate_str}_"Line too long (84 > 79 characters):
265 If vec is a list of Tensors, it concatenates them all along the first dimension.Line too long (85 > 79 characters):
267 If vec is a list of lists, it joins these lists together, but does not attempt toLine too long (88 > 79 characters):
268 recursively collate. This allows each element of the list to be, e.g., its own dict.Line too long (89 > 79 characters):
270 If vec is a list of dicts (with the same keys in each dict), it returns a single dictLine too long (86 > 79 characters):
271 with the same keys. For each key, it recursively collates all entries in the list.Line too long (84 > 79 characters):
283 raise TypeError("Elements of the list to collate must be tensors or dicts.")