Remove specific edata , ndata

Hi there, I hope to remove some edata and ndata keys.
For example,

print (g.ndata.keys()) # 'age', 'height', 'weight', 'nationality', 'h'

I don’t need node feature age, height, weight, nationality anymore for further GNN calculation.

I know it’s very basic question, but I can’t find how can I remove node/edge features…

Thanks.

For example, to remove node feature age, use g.ndata.pop('age')

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.