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
609a49a9
Unverified
Commit
609a49a9
authored
Feb 24, 2022
by
Rhett Ying
Committed by
GitHub
Feb 24, 2022
Browse files
[Doc] fix example in dataset adapter docstring (#3772)
parent
2f4146a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/dgl/data/adapter.py
python/dgl/data/adapter.py
+2
-2
No files found.
python/dgl/data/adapter.py
View file @
609a49a9
...
...
@@ -228,10 +228,10 @@ class AsLinkPredDataset(DGLDataset):
>>> ds = dgl.data.CoraGraphDataset()
>>> print(ds)
Dataset("cora_v2", num_graphs=1, save_path=...)
>>> new_ds = dgl.data.As
Node
PredDataset(ds, [0.8, 0.1, 0.1])
>>> new_ds = dgl.data.As
Link
PredDataset(ds, [0.8, 0.1, 0.1])
>>> print(new_ds)
Dataset("cora_v2-as-linkpred", num_graphs=1, save_path=/home/ubuntu/.dgl/cora_v2-as-linkpred)
>>> print(hasattr(new_ds, "
get_
test_edges"))
>>> print(hasattr(new_ds, "test_edges"))
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