Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
b3097725
Commit
b3097725
authored
May 26, 2019
by
askliar
Committed by
Lingfan Yu
May 25, 2019
Browse files
[BugFix] Fix error when bfs_level = 0 in Entity Classification with RGCN (#559)
parent
8f378d90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/contrib/data/knowledge_graph.py
python/dgl/contrib/data/knowledge_graph.py
+1
-1
No files found.
python/dgl/contrib/data/knowledge_graph.py
View file @
b3097725
...
...
@@ -120,7 +120,7 @@ class RGCNEntityDataset(object):
self
.
test_idx
=
node_map
[
self
.
test_idx
]
print
(
"{} nodes left"
.
format
(
self
.
num_nodes
))
else
:
self
.
src
,
self
.
dst
,
self
.
edge_type
=
edges
.
transpose
()
self
.
edge_
src
,
self
.
edge_
dst
,
self
.
edge_type
=
edges
.
transpose
()
# normalize by dst degree
_
,
inverse_index
,
count
=
np
.
unique
((
self
.
edge_dst
,
self
.
edge_type
),
axis
=
1
,
return_inverse
=
True
,
return_counts
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment