当前位置:网站首页>GNNExplainer applied to node classification task
GNNExplainer applied to node classification task
2022-08-09 06:01:00 【kc7w91】
GNNExplainer applied to node classification task
1. Thesis section
For node classification tasks, GNNExplainer realizes: extracts the subgraph structure and some features most relevant to the current node prediction result, and uses mask to indicate
How to find it: By continuously adjusting the subgraph G_s and featuresSubset X_s (which feature dimensions are working, not which node features are working), complete maximization Mutual information task, calculation formula:
Y is the prediction result is fixed, the function H represents entropy, so H(Y) is constant, so the goal is to minimize the above formulaSubtraction:
The above formula is based on The calculation of conditional entropy has been expanded. I have been confused for a long time before, and the paper has come to this point with a snap
2. Framework provided by pyg
from torch_geometric.nn import GNNExplainerimport matplotlib.pyplot as pltexplainer = GNNExplainer(model, epochs=300) # model isNode to be explainednode_idx = 3840 # index of the node to be explainednode_feat_mask, edge_mask = explainer.explain_node(node_idx, data.x, data.edge_index) # x/edge_index corresponds to the nodeFeature/Edge Setax, G = explainer.visualize_subgraph(node_idx, data.edge_index, edge_mask, y=y)# y is the prediction resultplt.savefig("explain_" + str(node_idx) + ".png")plt.show()
边栏推荐
- 2022-08-08:给定一个数组arr,表示从早到晚,依次会出现的导弹的高度。 大炮打导弹的时候,如果一旦大炮定了某个高度去打,那么这个大炮每次打的高度都必须下降一点。 1) 如果只有一个大炮,返回
- 弄潮 Web3 欧易OKX全球「抢人」
- Lock wait timeout exceeded; try restarting transaction 更新数据量范围太大,导致锁表惨案
- Online tool for sorting multi-line strings
- Transaction rolled back because it has been marked as rollback-only
- AIOT介绍
- qt send mail program
- 2,C#的数据类型
- SiO2-NH2/Fe3O4表面氨基化的Fe3O4/SiO2复合磁性纳米粒子(齐岳试剂)
- C语言如何给函数传二维数组?
猜你喜欢
数据中台项目前期总结
一天学习一家上市公司:索菲亚
数组 冒泡排序
[email protected]@cadmium sulfide nanocore-shell structure material|Fe3O4 magnetic nanop"/>
Superparamagnetic iron [email protected]@cadmium sulfide nanocore-shell structure material|Fe3O4 magnetic nanop
51 serial communication (on)
MYSQLg高级------批量插入百万级数据量
2022-08-08:给定一个数组arr,表示从早到晚,依次会出现的导弹的高度。 大炮打导弹的时候,如果一旦大炮定了某个高度去打,那么这个大炮每次打的高度都必须下降一点。 1) 如果只有一个大炮,返回
qt发送邮件程序
八、开发者工具与单元测试
shell function
随机推荐
LDO和DC-DC的区别
kubernetes 安全
【Word】Word 正文中同时加上下标
弄潮 Web3 欧易OKX全球「抢人」
Chapter7、基于图像的光照
Text String Length Sorting - Online Tool
SiO2-NH2/Fe3O4表面氨基化的Fe3O4/SiO2复合磁性纳米粒子(齐岳试剂)
JVM:(六)运行时数据区之本地方法栈
正则表达式-判断字符串是否匹配“AABB”模式
【零基础玩转BLDC系列】无刷直流电机闭环控制与软件架构
2022-08-08:给定一个数组arr,表示从早到晚,依次会出现的导弹的高度。 大炮打导弹的时候,如果一旦大炮定了某个高度去打,那么这个大炮每次打的高度都必须下降一点。 1) 如果只有一个大炮,返回
How to pass a two-dimensional array to a function in C language?
shell函数
牛客每日刷题之链表
【深度学习】聊一聊什么是卷积神经网络,卷积是什么意思?
[Deep Learning] Let's talk about what is convolutional neural network and what does convolution mean?
#define
软件测试工程师简历要怎么写,才能让HR看到
SiO2/KH550修饰四氧化三铁纳米磁性颗粒|PDA包裹四氧化三铁磁性纳米颗粒(科研级)
51串口通信(上)