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?
Hi,
I have a question about the
sorted_partitionvariable. I have noticed that it is used to computeedge_mat_listinposterior_samplingand by thegroup_inputfunction. In the first case,edge_mat_listis always equal to the inputadj_mat_list, and in the second case, the grouped inputs appear to be identical to the input arguments to thegroup_inputfunction. So in both cases it does not appear as if the two functions are doing anything, hinting that thesorted_partitionvariable 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.pyfile it is always initialized tosorted_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 initializesorted_partitionanother way in practice?