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
e7515773
Unverified
Commit
e7515773
authored
Aug 09, 2020
by
xiang song(charlie.song)
Committed by
GitHub
Aug 09, 2020
Browse files
hotfix (#1980)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-87-240.ec2.internal
>
parent
b9ef70e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/dgl/data/knowledge_graph.py
python/dgl/data/knowledge_graph.py
+3
-3
No files found.
python/dgl/data/knowledge_graph.py
View file @
e7515773
...
@@ -166,9 +166,9 @@ class KnowledgeGraphDataset(DGLBuiltinDataset):
...
@@ -166,9 +166,9 @@ class KnowledgeGraphDataset(DGLBuiltinDataset):
if
self
.
verbose
:
if
self
.
verbose
:
print
(
"# entities: {}"
.
format
(
self
.
num_nodes
))
print
(
"# entities: {}"
.
format
(
self
.
num_nodes
))
print
(
"# relations: {}"
.
format
(
self
.
num_rels
))
print
(
"# relations: {}"
.
format
(
self
.
num_rels
))
print
(
"# training edges: {}"
.
format
(
train
_idx
.
shape
[
0
]))
print
(
"# training edges: {}"
.
format
(
self
.
_
train
.
shape
[
0
]))
print
(
"# validation edges: {}"
.
format
(
valid
_idx
.
shape
[
0
]))
print
(
"# validation edges: {}"
.
format
(
self
.
_
valid
.
shape
[
0
]))
print
(
"# testing edges: {}"
.
format
(
test
_idx
.
shape
[
0
]))
print
(
"# testing edges: {}"
.
format
(
self
.
_
test
.
shape
[
0
]))
@
property
@
property
def
num_nodes
(
self
):
def
num_nodes
(
self
):
...
...
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