代码拉取完成,页面将自动刷新
节点特征矩阵->dropout层->head个dim特征降维层->attention层(head个独立attention参数)->
->节点聚合层->特征向量拼接(最后一层GNN操作:加和平均)层->激活函数层->节点特征矩阵
python库
cuda版本9.0
graphpas
|---build_gnn :图神经网络构建
|--- __init__.py
|--- gnn_manager.py :图神经网络建模管理
|--- gnn_net.py :图神经网络前向计算
|--- graph_sample.py :图数据随机采样
|--- message_passing_net.py :消息传递网络/参数初始化
|
|
graphpas_search :GraphPAS并行遗传搜索
|--- __init__.py
|--- search_algorithm.py :并行搜索算法
|--- search_manager.py :搜索算法管理
|--- util.py :数据处理/存储/读取
__init__.py
|
device_information.py :GPU硬件判断
|
estimation.py :GNN结构参数评估
|
parallel_operator.py :平行计算
|
search_space.py :GNN结构搜索空间/GNN构型
data_util
|--- cite_network :cite_network数据集合
|--- util_cite_network.py :cite_network数据集预处理
examples
|--- graph_data_bulid_example :图数据构建案例
| |--- graph_data_build.py :自定义图数据构建
| |--- node_edge.txt :图边关系文件
| |--- node_feature.txt :图节点特征文件
| |--- node_label.txt :图节点标签文件
|---graph_data_sample_example :图数据随机采样案例
| |--- graph_data_sample.py :图随机采样
|--- node_classification_example :节点分类案例
|--- node_classification.py :节点分类
parallel_config.py :并行机制初始化
图数据构建:
案例脚本:
examples/graph_data_build_example/graph_data_build.py
图数据格式:
案例文件:
1.examples/graph_data_build_example/node_edge.txt
2.examples/graph_data_build_example/node_feature.txt
3.examples/graph_data_build_example/node_label.txt
图数据随机采样:
案例脚本:
examples/graph_data_sample_example/graph_data_sample.py
Transductive Learning节点分类案例:
案例脚本:
examples/node_classification_example/node_classification.py
并行启动:
from parallel_config import ParallelConfig
ParallelConfig(True) # True 并行
串行调试:
from parallel_config import ParallelConfig
ParallelConfig(False) # Fasle 串行
GPU/CPU资源使用/机制
1.自动识别主机GPU/CPU资源.
2.自动默认使用主机全部GPU资源,当没有GPU资源默认使用主机CPU所有逻辑核心资源.
3.优先使用GPU资源.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。