-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate assignment.npy #5
Comments
@spiritcommonsix Have you figured out how assignment.npy is generated, please? After reading the article carefully, I realized that there is a dimensional inconsistency between the way the assignment matrix is calculated according to the article, and assignment.npy. It is written below in the article:
According to my understanding, assignment.npy should be a stacked matrix of N sites Ai. assignment.npy has dimension (N, N, M). The text says that the dimension of Ai is (M, N), so the Ai matrix should have undergone a transpose operation and then been stacked. Also, according to what is written in the article:
Then I wrote a code to kern the values in assignment.npy as follows: if __name__ == '__main__':
a = np.load(os.path.join(Config().dataset_dir, 'assignment.npy')) # read assignment.npy
a = torch.from_numpy(a[:, 0])
row = a.transpose(1, 0)
row_sums = row.sum(axis=1)
print(row_sums) But the result I get is not for every row M, where the values sum to 1. I'm not sure if I'm understanding this correctly. I hope the author can correct me if there is a problem. Looking forward to the author's reply. |
@G-H-Li |
I don't understand "Dartboard Projection & MSA" in the paper and the assignment.npy is given in the code. Could you share the method of generating assignment.npy? Thanks for your work!
The text was updated successfully, but these errors were encountered: