alibaba / alibaba/euler

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

Open
#318 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.9k
Forks
553
PR merge metrics
No merged PRs in 30d

Description

问题的背景是希望采样与 源节点的某个属性值相同 的 目标节点。
比如 源节点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 时又会冲突。

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the tf_euler.sample_node and tf_euler.sample_node_with_src entry points described in the issue, and trace how their condition, count, node_type, and src_nodes arguments are handled. Done means supporting target-node sampling where a named attribute matches the source node while preserving node_type selection, including different attribute values across source nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.