当前位置:网站首页>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()边栏推荐
- 域名批量查询在线工具
- SiO2-NH2/Fe3O4表面氨基化的Fe3O4/SiO2复合磁性纳米粒子(齐岳试剂)
- sqlserver导入数据类型问题
- P8462 「REOI-1」奶油蛋糕
- [mysql database] the use of mysql database
- 通讯录改进即“保存”
- Ferric oxide/bismuth sulfide nanocomposites ([email protected]@BSABiS nanoparticles) | dendrimer-stabilized bismuth sulfide nanop
- LDO和DC-DC的区别
- 二十四节气之立秋
- kubernetes apparmor 简介
猜你喜欢
随机推荐
【JMeter】jmeter测试 - 上传多个图片/批量上传图片接口 CSV文件参数化方法
Transaction rolled back because it has been marked as rollback-only
Shell 文本三剑客 (grep、sed、awk)
一文搞懂│XSS攻击、SQL注入、CSRF攻击、DDOS攻击、DNS劫持
Ferric oxide/bismuth sulfide nanocomposites ([email protected]@BSABiS nanoparticles) | dendrimer-stabilized bismuth sulfide nanop
A day to learn a public company: Sophia
JMeter test - JMeter 】 【 upload multiple images/batch CSV file upload pictures interface parametric method
绕过反调试fuck-debugger
通讯录改进即“保存”
【R语言】把文件夹下的所有文件提取到特定文件夹
RNN-T
VScode安装了ESlint以后不管用、不生效的解决办法
Superparamagnetic iron [email protected]@cadmium sulfide nanocore-shell structure material|Fe3O4 magnetic nanop
字符串的方法
Regular Expression - Determine if a string matches the "AABB" pattern
Xray - powerful vulnerability scanning tools
盒子模型中垂直分布的基本内容
2,C#的数据类型
phpstudy install flarum forum
【过一下18】超参数优化









