提交

提交图

3215 次代码提交

作者 SHA1 备注 提交日期
Quan (Andy) Gan 0897548a91 [RFC][Doc] Contribution Guideline updates (#1015)
* Update contribute.rst

* Update contribute.rst

* Update contribute.rst

* Update contribute.rst
2019-11-29 16:59:12 +08:00
Quan (Andy) Gan 49b406c981 memory leak fix in PyTorch (#1060) 2019-11-29 14:37:33 +08:00
John Andrilla 22d4de77a0 [Doc] 6_line_graph.py Edit pass (#1003)
* Edit pass

Updates for grammar and readability

* Update tutorials/models/1_gnn/6_line_graph.py

* Update tutorials/models/1_gnn/6_line_graph.py

* Update tutorials/models/1_gnn/6_line_graph.py
2019-11-29 13:53:43 +08:00
Quan (Andy) Gan 365d361725 [Bug] Fix #1036 (#1037)
* fix

* unit test
2019-11-29 11:53:29 +08:00
John Andrilla 287f387b8c Edit for readability (#1002)
Grammar and style updates
2019-11-29 10:53:11 +08:00
Zhang Zhi 4f6063124b [Graph]To(device) should return updated object (#1057)
* To(device) should return updated object

* Add test case and doc

* Add another doc

* Add descriptions  and a test

* Pass test
2019-11-29 00:15:22 +08:00
John Andrilla 8ae9770f9b [Doc] Graph neural network and its variant Edit for grammar and style (#992)
* Edit for grammar and style

Improve readability

* Update tutorials/models/1_gnn/README.txt

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update tutorials/models/1_gnn/README.txt

Co-Authored-By: Aaron Markham <markhama@amazon.com>
2019-11-28 15:44:58 +08:00
John Andrilla c9ac6c9889 [Doc] NN Modules Edit for grammar and style (#991)
* Edit for grammar and style

Improve the flow and readability

* Update docs/source/features/nn.rst

Better now? NN Modules as a title is vague
2019-11-27 22:40:19 +08:00
John Andrilla 832d93c63b [Doc] Grammatical updates (#990)
* grammatical updates

Edit pass for readability. 
Can you clarify: "are of different, but shapes that can be broadcast." Are they of different shapes, but both can be broadcast?

* Update docs/source/features/builtin.rst

Okay now? Check this for logic.
2019-11-27 17:37:17 +08:00
John Andrilla 7911dc8332 [Doc] Edit for grammar and style (#987)
* Edit for grammar and style

As with other tutorials, it would help the reader if you add a paragraph in the opening section about assumptions or prerequisites.

Does this refer to SageMaker Ground Truth feature? "...assigns its ground truth label..." If yes, phrase it thus: assigns its Amazon SageMaker Ground Truth label

* Update tutorials/basics/4_batch.py

* Update tutorials/basics/4_batch.py

* Update tutorials/basics/4_batch.py

topologies

* Update tutorials/basics/4_batch.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>
2019-11-27 13:56:11 +08:00
John Andrilla 72cad95222 [Doc] Grammar and style edit pass (#980)
* Grammar and style edit pass

In the opening, it would be great to provide some rationale for why you recommend conda or pip.

* Update docs/source/install/index.rst

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update docs/source/install/index.rst

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update docs/source/install/index.rst

Co-Authored-By: Aaron Markham <markhama@amazon.com>
2019-11-27 13:32:22 +08:00
shizhediao dca2580b84 fix minor error: GCNLayerSAGE->GraphSAGELayer (#1010)
fix minor error: GCNLayerSAGE->GraphSAGELayer
2019-11-27 01:54:56 +08:00
Mufei Li ead64de98e [Hetero] Batching/Unbatching DGLHeteroGraph (#1017)
* Update

* Update

* Update

* Fix

* CI style fix

* CI fix style

* Fix

* Try CI

* Fix test

* Update

* Update

* Update

* Update
2019-11-26 14:40:50 +08:00
xuyou314 85c9ff01c9 [Example] Finish adaptive sampling (#998)
* [Example] Finish adaptive sampling

* refactor code and use argparse for command-line usage

* Update README.md

* add node_per_layer command-line argument
2019-11-26 13:47:26 +08:00
Quan (Andy) Gan 5833825bed Update README.md (#1044) 2019-11-25 22:12:27 +08:00
Mufei Li 6694f7b945 [Bug] Fix DGLHeteroGraph.edge_type_subgraph (#1040)
* Update

* Try CI
2019-11-25 03:35:25 +08:00
Da Zheng 168fc2cfda fix installation instruction. (#1024) 2019-11-22 17:49:17 +08:00
Jacob Stevens 45aa158408 Fix example code in saving graphs (#1034) 2019-11-22 13:38:58 +08:00
John Andrilla 8f7abb5fb0 [Doc] Edit for readability (#989)
* Edit for readability

Edit pass for grammar and style. 
* A great value-add would be to provide assumptions and prerequisites in the opening section. This helps readers understand what they need to have in place in order to make use of your tutorial steps.
* The wikidata knowledge graph could be improved with a smaller font for the Zuckerberg circle.

* Update tutorials/hetero/1_basics.py

* Update tutorials/hetero/1_basics.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update tutorials/hetero/1_basics.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update tutorials/hetero/1_basics.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update tutorials/hetero/1_basics.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>

* Update tutorials/hetero/1_basics.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>
2019-11-21 22:06:52 +08:00
John Andrilla 409183bc56 [Doc] Edit for grammar and style (#986)
Can you add a link for the download to this sentence: You can also `download <location?>` and run the different code examples...
As with other tutorial topics, it would be helpful to add your assumptions or information in the opening section about prerequisites.
2019-11-21 14:04:20 +08:00
Mufei Li f1542b9dfa Fix (#1019) 2019-11-20 15:14:40 +08:00
John Andrilla d2afe65ca8 [Doc] Edit for grammar and style (#985)
* Edit for grammar and style

In the opening paragraph, it would be helpful to provide some overall scenario and the prerequisites you expect readers to have completed before they start here. "This tutorial assumes you have already..." Add a link to Install DGL topic perhaps and any other framework or IDE or even specialized knowledge. With this context, you help readers to succeed by setting expectations.

Better to group all tutorials (this, PageRank with, Batched Graph, Working with) at the same level in the left navigation rail and all as subsections of DGL Basics.

* Update tutorials/basics/2_basics.py
2019-11-20 12:03:18 +08:00
MilkshakeForReal 8b17a5c1d5 [Model] add RotatE to dgl-kg (#964)
Add RotatE support for KGE (apps/kg)
Performance Result:
Dataset FB15k:
Result from Paper:
MR: 40
MRR: 0.797
HIT@1: 74.6
HIT@3: 83.0
HIT@10: 88.4

Our Impl:
MR: 39.6
MRR: 0.725
HIT@1: 62.8
HIT@3: 80.2
HIT@10: 87.5
2019-11-14 10:39:05 +08:00
xiang song(charlie.song) 1915fdb984 Make print of GCN example of mxnet and pytorch exact same. (#994) 2019-11-13 12:47:06 +08:00
Chao Ma a0193fd539 Small change for kvstore api (#981)
* Small change for kvstore api

* fix ci

* fix ci
2019-11-08 16:25:12 +08:00
Chao Ma 0b4935d4c3 Test shared-mem on kvstore (#976) 2019-11-05 17:09:35 +08:00
Chao Ma 7897fa3b9c add init api on kvserver (#975) 2019-11-05 16:21:35 +08:00
Chao Ma cccde032f4 [kvstore] Performance improvement for distributed kvstore (#972)
* Performance improvment for distributed kvstore

* update

* update
2019-11-04 18:27:00 +08:00
Zihao Ye fdd0fe651d hotfix (#971) 2019-11-04 12:11:53 +08:00
Zihao Ye 9a0511c8e9 [NN] nn modules & examples update (#890)
* upd

* damn it

* fuck

* fuck pylint

* fudge

* remove some comments about MXNet

* upd

* upd

* damn it

* damn it

* fuck

* fuck

* upd

* upd

* pylint bastard

* upd

* upd

* upd

* upd

* upd

* upd

* upd

* upd

* upd
2019-11-03 17:29:42 -05:00
xiang song(charlie.song) 7f65199a86 [NN]Supporting TransR in app/kg score_func (#945)
* Add TransR for kge

* Now Pytorch TransR can run

* Add MXNet TransR

* Now mxnet can work with small dim size

* Add test

* Pass simple test_score

* Update test with transR score func

* Update RESCAL MXNet

* Add missing funcs

* Update init func for transR score

* Revert "Update init func for transR score"

This reverts commit 0798bb886095e7581f6675da5343376844ce45b9.

* Update score func of TransR MXNet

Make it more memory friendly and faster,
thourgh it is still very slow and memory consuming

* Update best config

* Fix ramdom seed for test

* Init score-func specific var

* Update Readme
2019-11-01 10:50:44 -07:00
John Andrilla a85382b0ff [doc] simple readability and style changes (#965) 2019-11-01 17:28:18 +08:00
xiang song(charlie.song) 82499e602b [Bug Fix] Fix package reliability bug of networkx (#949)
* upd

* fig edgebatch edges

* add test

* trigger

* Update README.md for pytorch PinSage example.

Add noting that the PinSage model example under
example/pytorch/recommendation only work with Python 3.6+
as its dataset loader depends on stanfordnlp package
which work only with Python 3.6+.

* Provid a frame agnostic API to test nn modules on both CPU and CUDA side.

1. make dgl.nn.xxx frame agnostic
2. make test.backend include dgl.nn modules
3. modify test_edge_softmax of test/mxnet/test_nn.py and
    test/pytorch/test_nn.py work on both CPU and GPU

* Fix style

* Delete unused code

* Make agnostic test only related to tests/backend

1. clear all agnostic related code in dgl.nn
2. make test_graph_conv agnostic to cpu/gpu

* Fix code style

* fix

* doc

* Make all test code under tests.mxnet/pytorch.test_nn.py
work on both CPU and GPU.

* Fix syntex

* Remove rand

* Add TAGCN nn.module and example

* Now tagcn can run on CPU.

* Add unitest for TGConv

* Fix style

* For pubmed dataset, using --lr=0.005 can achieve better acc

* Fix style

* Fix some descriptions

* trigger

* Fix doc

* Add nn.TGConv and example

* Fix bug

* Update data in mxnet.tagcn test acc.

* Fix some comments and code

* delete useless code

* Fix namming

* Fix bug

* Fix bug

* Add test for mxnet TAGCov

* Add test code for mxnet TAGCov

* Update some docs

* Fix some code

* Update docs dgl.nn.mxnet

* Update weight init

* Fix

* reproduce the bug

* Fix concurrency bug reported at #755.
Also make test_shared_mem_store.py more deterministic.

* Update test_shared_mem_store.py

* Update dmlc/core

* networkx >= 2.4 will break our examples

* Update tutorials/requirements

* fix selfloop edges

* upd version
2019-10-29 23:34:31 -04:00
Jacob Stevens 98c1448bfc [Cleanup] Change Byte to Bool for training masks (#954)
* Change Byte to Bool for training masks

* Check if module has Bool, otherwise use Byte
2019-10-29 17:14:08 -04:00
Mufei Li 86cf154be9 [Misc] Update README(s) (#962)
* Update

* Update
2019-10-29 15:37:25 +08:00
Quan (Andy) Gan a6d5a0cbdd [BUG] Fix #717 (#946)
* [BUG] Fix #717

* fix mxnet test
2019-10-28 09:29:07 +08:00
Mufei Li 421b05e7b8 [Model] Clean up for Cluster GCN (#940)
* Update

* Update

* Update

* Update

* Update

* Update

* Fix

* Fix
2019-10-26 21:02:47 +08:00
Mufei Li 52c7ef49fc [Model Zoo] AttentiveFP (#955)
* Update

* Fix style

* Update

* Update

* Fix

* Update

* Update
2019-10-26 01:57:34 +08:00
Quan (Andy) Gan 43028f702f Update README.md (#916)
* Update README.md

* Update README.md
2019-10-25 22:18:41 +08:00
Mufei Li 4eba1ce2a4 [Chemistry] Hot fix (#953)
* Hot fix

* CI
2019-10-25 15:05:21 +08:00
Mufei Li 577cf2e63b [Model Zoo] Refactor and Add Utils for Chemistry (#928)
* Refactor

* Add note

* Update

* CI
2019-10-22 00:47:45 +08:00
Da Zheng 0bf3b6ddb3 add KG statistics. (#931)
* add KG statistics.

* add Freebase.

* fix link.
2019-10-21 22:49:46 +08:00
Chao Ma 70ee4b5e28 Add more test to kvstore (#944) 2019-10-21 17:46:43 +08:00
Chao Ma ff9f67ee0d Send any shape of tensor rather than matrix (#942) 2019-10-21 17:27:03 +08:00
Mufei Li ae3102d3a2 [Dataset] Migration for Chemistry Datasets (#926)
* Update

* Update
2019-10-21 16:38:28 +08:00
Xiagkun Hu c37076dfe6 [Model] Gated Graph Neural Network for bAbI tasks (#880)
* rrn model and sudoku

* add README

* refine the code, add doc strings

* add sudoku solver

* add example for sudoku_solver

* ggnn example

* Rewrite README file

* fix typos
2019-10-21 16:07:32 +08:00
John Andrilla 8d84865548 Voice and tone updates for readability (#938)
Simple editorial updates
2019-10-21 09:06:56 +08:00
Aaron Markham 9c095a725a [Doc] minor spelling updates (#935)
* minor spelling updates

* Update docs/source/features/builtin.rst
2019-10-19 00:47:07 +08:00
Chao Ma 02fb05817b [KG] Add RESCAL model to DGL-KGE (#923)
* Add RESCAL model

* update

* update

* match acc

* update

* add README.md

* fix
2019-10-11 23:45:25 -07:00
xiang song(charlie.song) 20439e1c27 Fix bug of KG train.py script. (#922)
It cannot work when only mxnet backend is installed.
2019-10-11 10:13:09 -07:00