Line too long (92 > 79 characters):
48 - group_indices (list): List of Tensors, where the i-th tensor is the indices of theLine too long (84 > 79 characters):
54 unique_groups, unique_counts = torch.unique(g, sorted=False, return_counts=True)Line too long (87 > 79 characters):
71 - counts (Tensor): A list of length n_groups, denoting the count of each group.Line too long (84 > 79 characters):
73 unique_groups, unique_counts = torch.unique(g, sorted=False, return_counts=True)Line too long (81 > 79 characters):
83 g (Tensor): Vector of the same length as v, containing group information.Line too long (88 > 79 characters):
92 group_avgs = torch_scatter.scatter(src=v, index=g, dim_size=n_groups, reduce='mean')Line too long (85 > 79 characters):
101 category_type = CategoricalDtype(categories=ordered_map[c], ordered=True)Line too long (95 > 79 characters):
133 """ Calculate the model threshold to use to achieve a desired global_recall level. Assumes that