Open xyk0058 opened 4 years ago
We don't have to set that limitation. gen_matrix[:,:,0] and gen_matrix[:,:,1] are just regular parameters and they are not mean for the probability of the edge. Rather, We use exp(g[:,:,0]) / (exp(g[:,:,0])+exp(g[:,:,1])) to represent the probability and they sum to 1 naturally.
in your code, aij and (1-aij) use gen_matrix = torch.randn (num_nodes, num_nodes, 2), is mean gen_matrix[:,:,0]+gen_matrix[:,:,1]=1 ? I'm confused about it. Please help me. Thanks!