Skip to content

What is the role of the sorted_partition variable? #8

@KamilDre

Description

@KamilDre

Hi,

I have a question about the sorted_partition variable. I have noticed that it is used to compute edge_mat_list in posterior_sampling and by the group_input function. In the first case, edge_mat_list is always equal to the input adj_mat_list, and in the second case, the grouped inputs appear to be identical to the input arguments to the group_input function. So in both cases it does not appear as if the two functions are doing anything, hinting that the sorted_partition variable might be redundant.

I wanted to ask you what exactly is the role of this variable and what is its use? I have also noticed that in the main.py file it is always initialized to sorted_partition = [[m] for m in range(eval_inputs.size(1))] irrespective of the task, and I imagine that this is why the two above mentioned functions simply return their inputs. When would you initialize sorted_partition another way in practice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions