Skip to content

Commit

Permalink
[Doc] RGCN tutorial (dmlc#206)
Browse files Browse the repository at this point in the history
* rgcn tutorial

* data processing for rgcn

* many fix

* requirements for rgcn tutorial

* fix comments

* description of rgcn dataset

* author

* bug fix

* move all dataset to s3
  • Loading branch information
lingfanyu authored Dec 1, 2018
1 parent cccc233 commit 0f121ee
Show file tree
Hide file tree
Showing 4 changed files with 906 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/dgl/contrib/data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from __future__ import absolute_import

from . import knowledge_graph as knwlgrh
def load_data(dataset, bfs_level=3, relabel=False):
if dataset in ['aifb', 'mutag', 'bgs', 'am']:
return knwlgrh.load_entity(dataset, bfs_level, relabel)
elif dataset in ['FB15k', 'wn18', 'FB15k-237']:
return knwlgrh.load_link(dataset)
else:
raise ValueError('Unknown dataset: {}'.format(dataset))
Loading

0 comments on commit 0f121ee

Please sign in to comment.