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

implementation of run_step_fast #22

Closed
zhyx12 opened this issue Jan 23, 2018 · 0 comments
Closed

implementation of run_step_fast #22

zhyx12 opened this issue Jan 23, 2018 · 0 comments

Comments

@zhyx12
Copy link

zhyx12 commented Jan 23, 2018

The code in run_step_fast(), doesn't match the formula in annotation. This part aims at updating a_us_t[idx_c_a,:]

below is the annotation
update A_t(i->idx_c_a) = r_a * A_t(i->idx_c_a) + r_b * A_t(i->idx_c_b) (fast algorithm)
but code doesn't not contain r_a and r_b, which looks like:
A_us_t:indexAdd(1, torch.LongTensor{idx_c_a}, A_us_t:index(1, torch.LongTensor{idx_c_b}))

this makes me confused, should I change the code to annotation version(implementation in function merge_two_clusters())?

Thanks for your work!

@zhyx12 zhyx12 closed this as completed Oct 18, 2018
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