原创文章~转载请注明出处哦。其他部分内容参见以下链接~

GraphSAGE 代码解析(二) - layers.py

GraphSAGE 代码解析(三) - aggregators.py

GraphSAGE 代码解析(四) - models.py

GraphSAGE代码详解

example_data:

1. toy-ppi-G.json 图的信息

{ 
  directed: false
  graph : {
              {name: disjoint_union(,) }
           nodes:  [
                        {  
                                test: false
                         id: 0
                         features: [ ... ]
                         val: false
                          lable: [ ... ]
                       }
                       {...}
                         ...
                  ]

            links: [
                       {  
                                test_removed: false
                        train_removed: false
                        target: 800 # 指向的节点id(默认从小节点指向大节点)
                        source: 0   # 从0节点按顺序展示
                         }
                         {...}
                           ...
                    ]
      }
}
View Code

相关文章: