-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc][Model] example folder doc and model summary (dmlc#259)
* update example readme * mx example readme * add results in readme * mx rgcn readme
- Loading branch information
1 parent
899d125
commit e557ed8
Showing
8 changed files
with
46 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Model Examples using DGL (w/ MXNet backend) | ||
|
||
Each model is hosted in their own folders. Please read their README.md to see how to | ||
run them. | ||
|
||
To understand step-by-step how these models are implemented in DGL. Check out our | ||
[tutorials](https://docs.dgl.ai/tutorials/models/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
# DGL example models | ||
# Model Examples using DGL (w/ Pytorch backend) | ||
|
||
## Dataset | ||
gat.py and gcn.py use real dataset, please download citeseer/cora/pubmed dataset from: | ||
https://github.com/tkipf/gcn/tree/master/gcn/data | ||
Each model is hosted in their own folders. Please read their README.md to see how to | ||
run them. | ||
|
||
dataset.py (adapted from tkipf/gcn) assumes that there is a "data" folder under current directory | ||
To understand step-by-step how these models are implemented in DGL. Check out our | ||
[tutorials](https://docs.dgl.ai/tutorials/models/index.html) | ||
|
||
## Model summary | ||
|
||
Here is a summary of the model accuracy and training speed. Our testbed is Amazon EC2 p3.2x instance (w/ V100 GPU). | ||
|
||
| Model | Reported <br> Accuracy | DGL <br> Accuracy | Author's training speed (epoch time) | DGL speed (epoch time) | Improvement | | ||
| ----- | ----------------- | ------------ | ------------------------------------ | ---------------------- | ----------- | | ||
| GCN | 81.5% | 81.0% | 0.0051s (TF) | 0.0042s | 1.17x | | ||
| TreeLSTM | 51.0% | 51.72% | 14.02s (DyNet) | 3.18s | 4.3x | | ||
| R-GCN <br> (classification) | 73.23% | 73.53% | 0.2853s (Theano) | 0.0273s | 10.4x | | ||
| R-GCN <br> (link prediction) | 0.158 | 0.151 | 2.204s (TF) | 0.633s | 3.5x | | ||
| JTNN | 96.44% | 96.44% | 1826s (Pytorch) | 743s | 2.5x | | ||
| LGNN | 94% | 94% | n/a | 1.45s | n/a | | ||
| DGMG | 84% | 90% | n/a | 1 hr | n/a | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.