Andrei Ivanov
a64ff4825a
Removing the UserWarning appearing in the mnist example. ( #6000 )
...
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com >
2023-07-14 13:30:12 +08:00
Hongzhi (Steve), Chen
5008af2210
[Misc] Rename number_of_edges and number_of_nodes to num_edges and num_nodes in examples. ( #5492 )
...
* pytorch_example
* fix
---------
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal >
2023-03-29 11:01:20 +08:00
Hongzhi (Steve), Chen
704bcaf6dd
examples ( #5323 )
...
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal >
2023-02-19 08:35:15 +08:00
Hongzhi (Steve), Chen
0b9df9d798
[Misc] Black auto fix. ( #4652 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-09-28 10:28:24 +08:00
Chang Liu
99f726ff93
Fix MNIST examples ( #4632 )
2022-09-27 15:41:18 +08:00
Chang Liu
a6bd96aa96
Fix example crashes due to DGL API update ( #4194 )
...
Co-authored-by: Xin Yao <xiny@nvidia.com >
2022-06-30 21:10:44 +08:00
Harsh Sinha
4bf70f0941
[Bugfix] issue #3527 ( #3528 )
...
* Fix issue 3527
* Changed default device
* Added g to device
2021-11-23 08:52:26 +08:00
Christian Clauss
04ed6126b5
[Fix] Use ==/!= to compare constant literals (str, bytes, int, float, tuple) ( #3415 )
...
* Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
Avoid Syntax Warnings on Python >= 3.8
$ `python3`
```
>>> "" == ""
True
>>> "" is ""
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
True
```
* Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
2021-10-14 17:35:37 +08:00
Mufei Li
be444e52d9
[Doc/Feature] Refactor, doc update and behavior fix for graphs ( #1983 )
...
* Update graph
* Fix for dgl.graph
* from_scipy
* Replace canonical_etypes with relations
* from_networkx
* Update for hetero_from_relations
* Roll back the change of canonical_etypes to relations
* heterograph
* bipartite
* Update doc
* Fix lint
* Fix lint
* Fix test cases
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Update
* Fix test
* Fix
* Update
* Use DGLError
* Update
* Update
* Update
* Update
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Update
* Fix
* Update
* Fix
* Fix
* Fix
* Update
* Fix
* Update
* Fix
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Fix
* Fix
* Update
* Update
* Update
* Update
* Update
* Update
* rewrite sanity checks
* delete unnecessary checks
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Fix
* Update
* Update
* Update
* Fix
* Fix
* Fix
* Update
* Fix
* Update
* Fix
* Fix
* Update
* Fix
* Update
* Fix
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com >
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com >
Co-authored-by: Quan Gan <coin2028@hotmail.com >
2020-08-18 04:26:29 +08:00
Minjie Wang
44089c8b4d
[Refactor][Graph] Merge DGLGraph and DGLHeteroGraph ( #1862 )
...
* Merge
* [Graph][CUDA] Graph on GPU and many refactoring (#1791 )
* change edge_ids behavior and C++ impl
* fix unittests; remove utils.Index in edge_id
* pass mx and th tests
* pass tf test
* add aten::Scatter_
* Add nonzero; impl CSRGetDataAndIndices/CSRSliceMatrix
* CSRGetData and CSRGetDataAndIndices passed tests
* CSRSliceMatrix basic tests
* fix bug in empty slice
* CUDA CSRHasDuplicate
* has_node; has_edge_between
* predecessors, successors
* deprecate send/recv; fix send_and_recv
* deprecate send/recv; fix send_and_recv
* in_edges; out_edges; all_edges; apply_edges
* in deg/out deg
* subgraph/edge_subgraph
* adj
* in_subgraph/out_subgraph
* sample neighbors
* set/get_n/e_repr
* wip: working on refactoring all idtypes
* pass ndata/edata tests on gpu
* fix
* stash
* workaround nonzero issue
* stash
* nx conversion
* test_hetero_basics except update routines
* test_update_routines
* test_hetero_basics for pytorch
* more fixes
* WIP: flatten graph
* wip: flatten
* test_flatten
* test_to_device
* fix bug in to_homo
* fix bug in CSRSliceMatrix
* pass subgraph test
* fix send_and_recv
* fix filter
* test_heterograph
* passed all pytorch tests
* fix mx unittest
* fix pytorch test_nn
* fix all unittests for PyTorch
* passed all mxnet tests
* lint
* fix tf nn test
* pass all tf tests
* lint
* lint
* change deprecation
* try fix compile
* lint
* update METIDS
* fix utest
* fix
* fix utests
* try debug
* revert
* small fix
* fix utests
* upd
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* trigger
* +1s
* [kernel] Use heterograph index instead of unitgraph index (#1813 )
* upd
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* trigger
* +1s
* [Graph] Mutation for Heterograph (#1818 )
* mutation add_nodes and add_edges
* Add support for remove_edges, remove_nodes, add_selfloop, remove_selfloop
* Fix
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal >
* upd
* upd
* upd
* fix
* [Transfom] Mutable transform (#1833 )
* add nodesy
* All three
* Fix
* lint
* Add some test case
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* fix
* triger
* Fix
* fix
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal >
* [Graph] Migrate Batch & Readout module to heterograph (#1836 )
* dgl.batch
* unbatch
* fix to device
* reduce readout; segment reduce
* change batch_num_nodes|edges to function
* reduce readout/ softmax
* broadcast
* topk
* fix
* fix tf and mx
* fix some ci
* fix batch but unbatch differently
* new checkk
* upd
* upd
* upd
* idtype behavior; code reorg
* idtype behavior; code reorg
* wip: test_basics
* pass test_basics
* WIP: from nx/ to nx
* missing files
* upd
* pass test_basics:test_nx_conversion
* Fix test
* Fix inplace update
* WIP: fixing tests
* upd
* pass test_transform cpu
* pass gpu test_transform
* pass test_batched_graph
* GPU graph auto cast to int32
* missing file
* stash
* WIP: rgcn-hetero
* Fix two datasety
* upd
* weird
* Fix capsuley
* fuck you
* fuck matthias
* Fix dgmg
* fix bug in block degrees; pass rgcn-hetero
* rgcn
* gat and diffpool fix
also fix ppi and tu dataset
* Tree LSTM
* pointcloud
* rrn; wip: sgc
* resolve conflicts
* upd
* sgc and reddit dataset
* upd
* Fix deepwalk, gindt and gcn
* fix datasets and sign
* optimization
* optimization
* upd
* upd
* Fix GIN
* fix bug in add_nodes add_edges; tagcn
* adaptive sampling and gcmc
* upd
* upd
* fix geometric
* fix
* metapath2vec
* fix agnn
* fix pickling problem of block
* fix utests
* miss file
* linegraph
* upd
* upd
* upd
* graphsage
* stgcn_wave
* fix hgt
* on unittests
* Fix transformer
* Fix HAN
* passed pytorch unittests
* lint
* fix
* Fix cluster gcn
* cluster-gcn is ready
* on fixing block related codes
* 2nd order derivative
* Revert "2nd order derivative"
This reverts commit 523bf6c249bee61b51b1ad1babf42aad4167f206.
* passed torch utests again
* fix all mxnet unittests
* delete some useless tests
* pass all tf cpu tests
* disable
* disable distributed unittest
* fix
* fix
* lint
* fix
* fix
* fix script
* fix tutorial
* fix apply edges bug
* fix 2 basics
* fix tutorial
Co-authored-by: yzh119 <expye@outlook.com >
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com >
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal >
Co-authored-by: Ubuntu <ubuntu@ip-172-31-7-42.us-west-2.compute.internal >
Co-authored-by: Ubuntu <ubuntu@ip-172-31-1-5.us-west-2.compute.internal >
Co-authored-by: Ubuntu <ubuntu@ip-172-31-68-185.ec2.internal >
2020-07-28 14:30:41 +08:00
Mufei Li
36c7b77167
[LifeSci] Move to Independent Repo ( #1592 )
...
* Move LifeSci
* Remove doc
2020-06-05 21:28:24 +08:00
Zihao Ye
93ac29ce34
[Refactor] Unify DGLGraph, BatchedDGLGraph and DGLSubGraph ( #1216 )
...
* upd
* upd
* upd
* lint
* fix
* fix test
* fix
* fix
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* upd tutorial
* upd
* upd
* fix kg
* upd doc organization
* refresh test
* upd
* refactor doc
* fix lint
Co-authored-by: Minjie Wang <minjie.wang@nyu.edu >
2020-03-05 18:03:57 +08:00
Jinjing Zhou
c23a61bd5c
fix s3 link ( #1310 )
2020-03-04 21:01:29 +08:00
Mufei Li
3f0c10058a
[DGL-LifeSci] Fix broken links ( #1248 )
...
* Fix
* Update
2020-02-08 18:42:51 +08:00
Mufei Li
828a5e5bc6
[DGL-LifeSci] Migration and Refactor ( #1226 )
...
* First commit
* Update
* Update splitters
* Update
* Update
* Update
* Update
* Update
* Update
* Migrate ACNN
* Fix
* Fix
* Update
* Update
* Update
* Update
* Update
* Update
* Finish classification
* Update
* Fix
* Update
* Update
* Update
* Fix
* Fix
* Fix
* Update
* Update
* Update
* trigger CI
* Fix CI
* Update
* Update
* Update
* Add default values
* Rename
* Update deprecation message
2020-02-04 01:38:09 +08:00
Mufei Li
2ab4d0e10f
[Doc] Hotfix for README ( #1119 )
2019-12-23 19:22:38 +08:00
Mufei Li
cf9ba90fd4
[Chem] ACNN and various utilities ( #1117 )
...
* Add several splitting methods
* Update
* Update
* Update
* Update
* Update
* Fix
* Update
* Update
* Update
* Update
* Fix
* Fix
* Fix
* Fix
* Fix
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Finally
* CI
2019-12-19 11:54:40 +08:00
Mufei Li
bc4f4352d1
[Chem Model Zoo] Hot fix for README ( #1071 )
...
* Fix outdated example
* Hot fix
2019-12-05 14:37:06 +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)
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
Mufei Li
52c7ef49fc
[Model Zoo] AttentiveFP ( #955 )
...
* Update
* Fix style
* Update
* Update
* Fix
* Update
* Update
2019-10-26 01:57:34 +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
Mufei Li
ae3102d3a2
[Dataset] Migration for Chemistry Datasets ( #926 )
...
* Update
* Update
2019-10-21 16:38:28 +08:00
Mufei Li
9df8cd3242
[Model Zoo] Fix JTNN ( #843 )
...
* Update
* Update
* Update
* Update
* Update
2019-09-10 16:14:37 +08:00
Mufei Li
189c2c0907
[Model Zoo] Refactor Model Zoo for Chemistry ( #839 )
...
* Update
* Update
* Update
* Update fix
* Update
* Update
* Refactor
* Update
* Update
* Update
* Update
* Update
* Update
* Fix style
2019-09-07 20:01:09 +08:00
Mufei Li
a9a0592c3e
Hot fix ( #816 )
2019-09-01 02:11:03 +08:00
Mufei Li
1b5820a5d6
Fix ( #806 )
2019-08-29 01:18:04 +08:00
Mufei Li
e590feeb62
[Model Zoo] GAT on Tox21 ( #793 )
...
* GAT
* Fix mistake
* Fix
* hotfix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Update
* Update
* Update
* Fix style
* Hotfix
* Hotfix
* Hotfix
* Fix
* Fix
* Update
* CI trial
* Update
* Update
* Update
2019-08-28 04:47:16 +08:00
VoVAllen
3192beb42d
[Model zoo] JTNN model zoo ( #790 )
...
* jtnn model zoo
* poke ci
* fix line sep
* fix
* Fix import order
* fix render
* fix render
* revert
* fix
* Resolve conflict
* dix
* remove create_var
* refactor
* fix
* refactor
* readme
* format
* fix lint
* fix lint
* pylint
* lint
* fix lint
* fix lint
* add hint
* fix
* Remove vocab
* Add explanation for warning
* add directory
* Load model to cpu by default
* Update
2019-08-28 04:04:54 +08:00
Mufei Li
331337fe5f
[Model Zoo] Clean up for Alchemy dataset ( #800 )
...
* Make dataset framework agnostic
* Update
* Update
* Fix
* Remove unused import
2019-08-28 00:08:59 +08:00
Zihao Ye
9314aabd1f
[Refactor] Interface of nn modules ( #798 )
...
* refactor
* upd mpnn
2019-08-27 22:29:25 +08:00
Zihao Ye
650f6ee1e0
[NN] Add commonly used GNN models from examples to dgl.nn modules. ( #748 )
...
* gat
* upd
* upd sage
* upd
* upd
* upd
* upd
* upd
* add gmmconv
* upd ggnn
* upd
* upd
* upd
* upd
* add citation examples
* add README
* fix cheb
* improve doc
* formula
* upd
* trigger
* lint
* lint
* upd
* add test for transform
* add test
* check
* upd
* improve doc
* shape check
* upd
* densechebconv, currently not correct (?)
* fix cheb
* fix
* upd
* upd sgc-reddit
* upd
* trigger
2019-08-27 18:21:19 +08:00
Mufei Li
8079d98617
Misc update ( #796 )
2019-08-27 16:08:36 +08:00
lunar
3bc73931f8
[Model Zoo] Molecule Regression ( #779 )
...
* [Model] MPNN
* [Model] MPNN 🔨 reorganize the mpnn/sch/mgcn model & alchemy dataset
* [Model] MPNN alchemy dataloader refactoring
* [Model] Chem model zoo minor change
* [Model] Chem Model Zoo 🔥 remove old samples
* [Model Zoo] molecule regression minor change
* Fix dataset import
* Fix dataset import
* [Model Zoo] molecule regression test set
* [Model Zoo] molecule prediction MPNN model hyperparameter tuning
* [Model Zoo] molecule prediction ✏️ mpnn performance update
2019-08-26 17:42:33 +08:00
Mufei Li
73b2668fe2
[Model Zoo] DGMG for molecule generation ( #783 )
...
* DGMG for molecule generation
* Fix CI check
* Fix for CI
* Trial for CI due to shared memory
* Update
* Better interface for dataset configuration
* Update
* Handle corner cases
* Update README
* Fix
* Fix
* Fix
* Fix
* Fix
* Refactor
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Update
* Fix
* Fix
* Fix
* Fix
* Fix
* Finallly
2019-08-26 03:39:20 +08:00
Mufei Li
35bed2a9d0
Rename early stop ( #773 )
2019-08-18 13:46:44 +08:00
Mufei Li
cd9fb7baa0
[Model Zoo] Refactor GCN on Tox21 ( #766 )
...
* [Model zoo] Model zoo (#765 )
* tox21
* fix ci
* fix ci
* fix urls to url
* add doc
* remove binary
* model zoo
* test
* markdown
* fix typo
* fix typo
* fix typo
* raise error
* fix lint
* remove unnecessary
* fix doc
* fix
* fix
* fix
* fix
* fix
* fix
* Update
* CI
* Fix
* Fix
* Fix
* Fix
* Fix
* CI
2019-08-16 02:49:25 +08:00