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

Ranks for specific Beta & Issues #7

Open
edsf70 opened this issue Nov 30, 2018 · 4 comments
Open

Ranks for specific Beta & Issues #7

edsf70 opened this issue Nov 30, 2018 · 4 comments

Comments

@edsf70
Copy link

edsf70 commented Nov 30, 2018

How do we obtain ranks for a specific beta? Thank you very much indeed!!!!

Issues are below:

Error in crossValidation (line 58)
idx = shuffle(1:M);
Error in demo (line 108)
[sig_a,sig_L] = crossValidation(A,5,1);

Error in eigenvectorCentrality (line 5)
[V,~] = eigs(A+regularization,1);
Error in demo (line 89)
s_eig = eigenvectorCentrality(A);

@edsf70
Copy link
Author

edsf70 commented Nov 30, 2018

Running with MATLAB

@dblarremore
Copy link
Collaborator

I just pushed shuffle.m to the repo, so grabbing that file should solve the first problem.

I can't tell what's going on with the second error. Is there more information that you can provide? It appears that there is an error calling the function eigs, but this should be a built-in function. Hmmm. https://www.mathworks.com/help/matlab/ref/eigs.html

About obtaining ranks for a specific beta: the SpringRank ranks are independent of beta, so the question can't be answered, actually. If you prefer, you can think of the ranks as the minimum energy solution, and the beta as being related to the uncertainty around those ranks. When beta is high, certainty is high. When beta is low, certainty is low.

@edsf70
Copy link
Author

edsf70 commented Dec 2, 2018

Thanks for putting shuffle.m into repo!

About the remaining issue:

This is how function eigenvectorCentrality is defined:
function [V] = eigenvectorCentrality(A,regularization)

I think parameter "regularization" should also be included where function is used in demo.m:
s_eig = eigenvectorCentrality(A);

Am I misunderstand something? By no means I'm a MATLAB programmer...

And thanks for your explanation about beta!

@dblarremore
Copy link
Collaborator

That's exactly right! I've changed
s_eig = eigenvectorCentrality(A);
to
s_eig = eigenvectorCentrality(A,1e-6);
in the latest version. Let me know if there are any issues remaining!

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

2 participants