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

Problems with random walk #20

Closed
nikitabaldan opened this issue Oct 1, 2019 · 1 comment
Closed

Problems with random walk #20

nikitabaldan opened this issue Oct 1, 2019 · 1 comment

Comments

@nikitabaldan
Copy link

Hi,
I've two problems with random walk kernel. The first one is that putting the flag of normalizing = True, the similarity matrix is all 1's.
The second issue is that, if I put the normalizing flag = False, the diagonal of the similarity matrix is not 0.
This is the code:

def computeKernelRW(graphs):
    print("-- computing kernel")
    rw_kernel = GraphKernel(kernel=[{"name": "random_walk","lamda":0.5}],normalize=False)
    return  rw_kernel.fit_transform(graphs)

And this is the call on the main:

K = computeKernelSP(graphs)
@ysig
Copy link
Owner

ysig commented Oct 2, 2019

Please have a look at this past (closed) issue #8

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