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

是否可以在随机采样时只采样与源节点的某个属性值相同的目标节点 #318

Open
imLogM opened this issue Dec 3, 2020 · 0 comments

Comments

@imLogM
Copy link

imLogM commented Dec 3, 2020

问题的背景是希望采样与 源节点的某个属性值相同 的 目标节点。
比如 源节点feature1='a',则希望采样到的节点也是 feature1='a'。

如果使用:
tf_euler.sample_node(
count, node_type, condition=''
)
但似乎condition的内容是不可变的,不能一会儿 condition='feature1 eq a',一会儿 condition='feature1 eq b'。

如果使用:
tf_euler.sample_node_with_src(
src_nodes, count
)
则需要将 feature1 作为 node_type,在同时要使用 node_type 时又会冲突。

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

1 participant