metapath2vec icon indicating copy to clipboard operation
metapath2vec copied to clipboard

metapath strategy: strictly or non strictly?

Open chenhui-bupt opened this issue 6 years ago • 2 comments

for v ∈ V do MP = MetaPathRandomWalk(G, P, v, l) ; X = HeterogeneousSkipGram(X, k, MP) ; end if the type of v is not equal to the first of your input metapath P, then you will skip it and use the next node v or choose the neighborhood node of v in its appropriate type in P. For example, the metapath is "author-conf-author" and node v is a conf, i wonder should i choose one author node of conf v according the partial path "conf-author" of the metapath P? or we skip the node v until we get an author node to match the metapath "author-conf-author" strictly ? I appreciate your answer on it, Thanks!

chenhui-bupt avatar Jun 10 '18 14:06 chenhui-bupt

if the random walk must starts with the node belong to the first type in metapath P? can you tell why? I hope I can express my problem clearly?

chenhui-bupt avatar Jun 10 '18 14:06 chenhui-bupt

You should ask the author of the original paper. I think it's reasonable that the random walk must start with the first type of the meta-path, but I don't know the answer for sure. My implementation does NOT include the random walk generator. The input to my implementation assume you already have random walks following the meta-path.

apple2373 avatar Jun 10 '18 14:06 apple2373