Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PGL
提交
e8cc247f
P
PGL
项目概览
PaddlePaddle
/
PGL
通知
76
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
11
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PGL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
11
Issue
11
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e8cc247f
编写于
10月 30, 2019
作者:
L
liweibin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
98e82403
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
9 deletion
+7
-9
docs/source/_static/logo.png
docs/source/_static/logo.png
+0
-0
docs/source/conf.py
docs/source/conf.py
+1
-3
docs/source/md/introduction.md
docs/source/md/introduction.md
+0
-3
examples/metapath2vec/README.md
examples/metapath2vec/README.md
+1
-1
pgl/layers/__init__.py
pgl/layers/__init__.py
+1
-0
pgl/layers/set2set.py
pgl/layers/set2set.py
+2
-0
pgl/utils/paddle_helper.py
pgl/utils/paddle_helper.py
+2
-2
未找到文件。
docs/source/_static/logo.png
查看替换文件 @
98e82403
浏览文件 @
e8cc247f
49.1 KB
|
W:
|
H:
50.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
docs/source/conf.py
浏览文件 @
e8cc247f
...
...
@@ -73,13 +73,12 @@ lanaguage = "zh_cn"
html_theme
=
"sphinx_rtd_theme"
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
html_show_sourcelink
=
False
#html_logo = 'pgl_
logo.png'
html_logo
=
'_static/
logo.png'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path
=
[
'_static'
]
'''
html_theme_options
=
{
'canonical_url'
:
''
,
'analytics_id'
:
'UA-XXXXXXX-1'
,
# Provided by Google in your dashboard
...
...
@@ -96,4 +95,3 @@ html_theme_options = {
'includehidden'
:
True
,
'titles_only'
:
False
}
'''
docs/source/md/introduction.md
浏览文件 @
e8cc247f
# Paddle Graph Learning (PGL)
<div
/>
<div
align=
left
><img
src=
"_static/logo.png"
width=
"300"
></div>
<div
/>
Paddle Graph Learning (PGL) is an efficient and flexible graph learning framework based on
[
PaddlePaddle
](
https://github.com/PaddlePaddle/Paddle
)
.
...
...
examples/metapath2vec/README.md
浏览文件 @
e8cc247f
...
...
@@ -20,7 +20,7 @@ Some important hyper parameters in config.yaml:
-
**use_cuda**
: use GPU to train model
-
**data_path**
: the directory of dataset that you want to load
-
**lr**
: learning rate
-
**neg_num**
: number of negatie samples.
-
**neg_num**
: number of negati
v
e samples.
-
**num_walks**
: number of walks started from each node
-
**walk_length**
: walk length
-
**metapath**
: meta path scheme
...
...
pgl/layers/__init__.py
浏览文件 @
e8cc247f
...
...
@@ -16,6 +16,7 @@
from
pgl.layers
import
conv
from
pgl.layers.conv
import
*
from
pgl.layers
import
set2set
from
pgl.layers.set2set
import
*
__all__
=
[]
...
...
pgl/layers/set2set.py
浏览文件 @
e8cc247f
...
...
@@ -23,6 +23,8 @@ import paddle.fluid.layers as L
import
pgl
__all__
=
[
'Set2Set'
]
class
Set2Set
(
object
):
"""Implementation of set2set pooling operator.
...
...
pgl/utils/paddle_helper.py
浏览文件 @
e8cc247f
...
...
@@ -223,9 +223,10 @@ def scatter_add(input, index, updates):
Same type and shape as input.
"""
output
=
fluid
.
layers
.
scatter
(
input
,
index
,
updates
,
mode
=
'add'
)
output
=
fluid
.
layers
.
scatter
(
input
,
index
,
updates
,
overwrite
=
False
)
return
output
def
scatter_max
(
input
,
index
,
updates
):
"""Scatter max updates to input by given index.
...
...
@@ -244,4 +245,3 @@ def scatter_max(input, index, updates):
output
=
fluid
.
layers
.
scatter
(
input
,
index
,
updates
,
mode
=
'max'
)
return
output
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录