ysig / GraKeL

A scikit-learn compatible library for graph kernels
https://ysig.github.io/GraKeL/
Other
587 stars 96 forks source link

use of ‘WeisfeilerLehman’ #76

Closed happysnzy closed 1 year ago

happysnzy commented 2 years ago

My understanding is that ‘WeisfeilerLehman’ must be used in conjunction with a base graph kernel, such as 'VertexHistogram'. If I want to use graph kernel ‘WeisfeilerLehman’ alone, what should I do? Is the following statement correct? ‘gk = WeisfeilerLehman(n_iter=50, base_graph_kernel=WeisfeilerLehman, normalize=True)’

giannisnik commented 2 years ago

Hi @happysnzy ,

There is no ‘WeisfeilerLehman’ kernel alone. Usually when one speaks about the ‘WeisfeilerLehman’ kernel alone, she refers to the Weisfeiler-Lehman subtree kernel (i.e., 'VertexHistogram' as the base kernel). Therefore, the statement you provided is not correct.