Skip to content
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

Affinity for clusters #26

Open
eleozzr opened this issue May 8, 2018 · 0 comments
Open

Affinity for clusters #26

eleozzr opened this issue May 8, 2018 · 0 comments

Comments

@eleozzr
Copy link

eleozzr commented May 8, 2018

s_W_c_j_i += THTensor_(get2d)(W, THTensor_(get2d)(Y, j, n) - 1, THTensor_(get2d)(Y, i, m) - 1);

In the lines 65-68 (agg_clustering.c file), you first get the length of cluster i and cluster j, which are saved in Y_i_size, Y_j_size, respectively. But I am confused that you use THTensor_(get2d)(Y, j, n) - 1 to call the element Y[j,n], in which the maximum of n is Y_j_size, but the column size of Y is Y->size[1].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant