GraphScope icon indicating copy to clipboard operation
GraphScope copied to clipboard

[Question]How to store additional feature in GraphScope

Open littleDrew opened this issue 2 years ago • 2 comments

您好,咨询下GraphScope中怎么存储多余的一些字段:

例如,在看vectornet实现代码时,它的每个子图包含额外的字段cluster, valid_len, 其中一条数据的shape可以如下

该代码是在PYG基础上实现的 https://github.com/xk-huang/yet-another-vectornet/blob/master/modeling/vectornet.py#L49

data (Data): [x, y, cluster, edge_index, valid_len]

# 一条数据的shape
Data(cluster[253], edge_index=[2, 2342], time_step_len=[1], valid_len=[1], x=[253, 8], y=[60])
  • cluster, time_step_len, valid_len 这些是这数据集中特有的额外的字段
  • 对应如果在GraphScope中存储的话,怎么存来着,这些额外的字段 不属于node_featedge_feat

littleDrew avatar May 27 '22 02:05 littleDrew

Thanks for opening your first issue here! Be sure to follow the issue template! And a maintainer will get back to you shortly! Please feel free to contact us on DingTalk, WeChat account(graphscope) or Slack. We are happy to answer your questions responsively.

welcome[bot] avatar May 27 '22 02:05 welcome[bot]

@littleDrew 这些数据集中特有的额外的字段,是如何参与计算的呢?

lidongze0629 avatar Jun 17 '22 03:06 lidongze0629