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

[a1] slight difference in partition_by_eigenvector output #488

Closed
ppttzhu opened this issue Sep 12, 2019 · 3 comments
Closed

[a1] slight difference in partition_by_eigenvector output #488

ppttzhu opened this issue Sep 12, 2019 · 3 comments

Comments

@ppttzhu
Copy link

ppttzhu commented Sep 12, 2019

There is slight difference between my output and Log.txt for partition_by_eigenvector. I think it's caused by eigh(laplacian) error because the laplacian matrix is too big (712*712).

(For example, the first eigenvalue is close 0 for example_graph(), but if the input is 'edges.txt.gz', it's around 0.005.)

My question is: should my output be exactly same with Log.txt to get full credit?

@aronwc
Copy link
Member

aronwc commented Sep 12, 2019

It is possible there are small variations in floating point numbers.

@ppttzhu
Copy link
Author

ppttzhu commented Sep 12, 2019

Values in 2nd eigenvector closed to 0 can cause trouble. And that's the reason why I got more nodes in positive eigenvector cluster (smaller cluster).

In Log.txt, node 'Bill Nye The Science Guy' is not included in smaller cluster, but its eigenvector (7.212122331153557e-05) is positive but close to 0.

I hope such differences do not make me lose credit.

@rlakde
Copy link

rlakde commented Sep 22, 2019

Yes, even I am getting the similar kind of results, I am getting more number of nodes in smaller cluster than the expected value.

@aronwc aronwc closed this as completed Nov 17, 2019
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

3 participants