Rhett Ying
bb43d0423a
[Benchmark] relocate distributed node classification ( #5681 )
2023-06-01 14:02:34 +08:00
Rhett Ying
ac6be7d761
[Benchmark] update node classification for multigpu benchmark ( #5674 )
...
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com >
2023-05-12 20:15:55 +08:00
paoxiaode
41baa0e448
[Example] GatedGCN ( #5659 )
2023-05-11 18:07:52 +08:00
Rhett Ying
d64f7c4808
[Benchmark] log train time and test accuracy, choose device ( #5662 )
2023-05-10 14:59:21 +08:00
czkkkkkk
f41934df87
[Sparse] Add conversion between DGLGraph and SparseMatrix. ( #5553 )
2023-04-20 18:00:34 +08:00
Mufei Li
de292c7a82
[Example] Sparse Example for HAN ( #5568 )
...
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2023-04-19 22:31:22 +08:00
Mufei Li
a1f7498240
[Example] Fix Various Examples Related to TorchMetrics ( #5521 )
...
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2023-04-10 15:54:00 +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
Mufei Li
a07305301e
Update main.py ( #5460 )
2023-03-22 21:01:16 +08:00
Minjie Wang
8d99d30a82
add a link about the removed TGN example ( #5456 )
2023-03-15 22:08:38 +08:00
DominikaJedynak
b7ce4b6a0c
Tensorflow examples fix ( #5433 )
2023-03-09 10:38:19 +08:00
Tingyu Wang
bcf9923b32
[Model] Add dgl.nn.CuGraphSAGEConv model ( #5137 )
...
* add CuGraphSAGEConv model
* fix lint issues
* update model to reflect changes in make_mfg_csr(), move max_in_degree to forward()
* lintrunner
* allow reset_parameters()
* remove norm option, simplify test
* allow full graph fallback option, add example
* address comments
* address reviews
---------
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2023-02-22 13:43:28 +08:00
Hongzhi (Steve), Chen
9fe5092c17
lintrunner ( #5326 )
...
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal >
2023-02-19 22:50:07 +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
Tingyu Wang
19b3cea166
[Model] Update CuGraphRelGraphConv to use pylibcugraphops=23.02 ( #5217 )
...
* update cugraph_relgraphconv
* update equality test
* update cugraph rgcn example
* update RelGraphConvAgg based on latest API changes
* enable fallback option to fg when fanout is large
---------
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2023-02-15 20:11:20 +08:00
Hongzhi (Steve), Chen
b3308ae795
Cleanup mock_sparse related code. ( #5230 )
...
* remove_mock_sparse_example
* mock_sparse_test
* remove_mock_sparse
---------
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2023-02-01 15:17:14 +08:00
Hongzhi (Steve), Chen
30fb03a6bc
Update example with spmatrix. ( #5219 )
...
* update
* graph
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2023-01-20 15:39:55 +08:00
Xin Yao
cdfd1e382f
Delete train_sampling_unsupervised.py ( #5161 )
2023-01-12 11:15:48 -08:00
peizhou001
56ffb650fe
[API Deprecation]Deprecate contrib module ( #5114 )
2023-01-06 20:16:01 +08:00
peizhou001
436de3d120
[API Deprecation] Remove _dataloading and tgcn example ( #5118 )
2023-01-06 19:51:55 +08:00
peizhou001
c55ab2d147
deprecate candidates in dataloader ( #5117 )
2023-01-06 16:18:32 +08:00
Chang Liu
a506ebe82b
[Example][Refactor] Multi-gpu graphsage link prediction example refactor ( #5091 )
2023-01-05 20:59:39 +08:00
rudongyu
ec3934d0d1
[Example] Sparse Graph Transformer ( #5069 )
...
* gt example
* update
* update
* update
* update
* lint
* Update examples/sparse/graph_transformer.py
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2023-01-05 08:50:38 +08:00
Mufei Li
9169fc3541
[Sparse] Polish sparse matrix creation functions ( #5093 )
...
* update
* Update
* Update
* Update
* Update
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2023-01-03 22:59:57 +08:00
Mufei Li
37bd092587
[Sparse] Namespace migration and doc update ( #5088 )
...
* update
* lint
* lint
* comments
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-12-29 20:34:29 +08:00
Minjie Wang
025e43210f
[Sparse] Add tests for sparse examples; Migrate from mock_sparse to mock_sparse2 ( #5073 )
...
* pass gcn
* example tests
* pass gcnii, hgnn, sgc, sign
* black
* test file
* add torchmetrics
* migrate appnp, c_and_s, twirls
* fix style
* minor fix
* fix hypergraphatt and twirls
* pass gat
* fix torchmetric
* lintrunner
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-12-29 08:55:25 +08:00
Hongzhi (Steve), Chen
bda6a816be
rename ( #5058 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-12-28 13:27:52 +08:00
paoxiaode
6bd8175890
[Sparse] GCNII example ( #5008 )
2022-12-18 14:44:22 +08:00
Hongzhi (Steve), Chen
236fac4fb9
[Misc] Small fix in sparse GCN example ( #5006 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-12-12 15:30:49 +08:00
paoxiaode
e28f07812b
[Sparse] GCN Example ( #4996 )
...
* add GCN sparse matrix example
* refine GCN example
* refine GCN example
* change train function
* [Bugfix] Turn off `use_alternate_stream` when TensorAdaptor is not enabled (#4987 )
* turn off use_alternate_stream when tensoradaptor is not enabled
* add docstring
* Update (#4997 )
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
* refine GCN example
* add GCN sparse matrix example
* refine GCN example
* refine GCN example
* change train function
* refine GCN example
* add highlight comment
* refine code
* refine code
* refine by black and flake8
* refine the comment to 80 char length
* refine the comment
* refine comment
Co-authored-by: Xin Yao <xiny@nvidia.com >
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-12-09 09:19:38 +08:00
Minjie Wang
c604366d4c
[Sparse][Example] Add TWIRLS example in sparse API ( #4922 )
...
* add twirls
* update attention part
* update; add val_like to mock_sparse
* black
2022-12-05 16:56:21 +08:00
Dylan
b84de903a2
GCN example correction ( #4969 ) ( #4976 )
...
Correction like mentioned in #4969
I noticed that there is a normalisation step on line 97 while the normalised values are not used downstream. Even if this was meant to show the normalisation step, it would not be calculating the normalisation step described in the CGN paper. The paper considers both in and out degrees while the normalisation in the code only describes normalisation using the in degrees.
In the end, the normalised values are assigned to g.ndata["norm"] but these values are not used afterwards.
Having a normalisation step here is also unnecessary since the GraphConv layer that is used already takes care of the normalisation. https://docs.dgl.ai/en/0.9.x/_modules/dgl/nn/pytorch/conv/graphconv.html#GraphConv
It confused me for a second thinking that I had to do the normalisation myself but this is already handled by the GraphConf.
2022-12-05 10:00:57 +08:00
Tingyu Wang
943abba3fb
[Example] add entity_sample example of using CuGraphRelGraphConv ( #4827 )
...
* add entity_sample example
* update message
* address review, update api call
* Update examples/pytorch/rgcn/entity_sample_cugraph_relgraphconv.py
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
* Update examples/pytorch/rgcn/entity_sample_cugraph_relgraphconv.py
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
* Update examples/pytorch/rgcn/entity_sample_cugraph_relgraphconv.py
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
* address review
* move example and add description
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-12-01 21:09:14 +08:00
Mufei Li
a5a0d9ed9d
[Sparse] C&S Example ( #4963 )
...
* Update
* Update
* Update
* Update
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-12-01 18:35:53 +08:00
peizhou001
611393021a
[API Deprecation] Remove candidates in DGLGraph ( #4946 )
2022-12-01 16:41:53 +08:00
Quan (Andy) Gan
1edc92336b
[Example] Hypergraph attention ( #4941 )
...
* hypergraph attention
* address comments
2022-11-28 20:12:37 +08:00
Mufei Li
7469bc9284
[Sparse] GAT Example ( #4955 )
...
* Update
* Update
* Update
* CI
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-11-28 19:23:23 +08:00
Hongzhi (Steve), Chen
0b9f64d607
small ( #4954 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-11-25 17:56:15 +08:00
Hongzhi (Steve), Chen
226d1159a9
[Misc] Auto fix by black. ( #4952 )
...
* black on explain_main
* isort
* add dot
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-11-25 09:24:44 +08:00
Hongzhi (Steve), Chen
f118ea9537
black ( #4951 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-11-25 09:19:17 +08:00
Mufei Li
c53deb26ab
[Sparse] APPNP example ( #4919 )
...
* Update
* Update
* Update
* Update
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-11-23 14:30:30 +08:00
Mufei Li
61fa640193
[Sparse] SGC example ( #4918 )
...
* Update
* Update
* Update
* Update
Co-authored-by: Ubuntu <ubuntu@ip-172-31-36-188.ap-northeast-1.compute.internal >
2022-11-22 17:38:27 +08:00
Quan (Andy) Gan
59f3d6e0b2
[Sparse] Add HGNN example ( #4917 )
...
* hgnn example
* desc
* update example index
* address
* replace naming
* address comments
2022-11-22 01:07:05 +08:00
Hongzhi (Steve), Chen
0c70bc23f4
[Sparse] Refactor SIGN model. ( #4921 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
2022-11-21 23:22:58 +08:00
Hongzhi (Steve), Chen
53895b958a
[Sparse] SIGN example. ( #4908 )
...
Co-authored-by: Steve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal >
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-11-17 16:41:35 +08:00
Rhett Ying
b377e1b9c1
[Dist][Examples] refactor dist graphsage examples ( #4269 )
...
* [Dist][Examples] refactor dist graphsage examples
* refine train_dist.py
* update train_dist_unsupervised.py
* fix debug info
* update train_dist_transductive
* update unsupervised_transductive
* remove distgnn
* fix join() in standalone mode
* change batch_labels to long() for ogbn-papers100M
* free unnecessary mem
* lint
* fix lint
* refine
* fix lint
* fix incorrect args
* refine
2022-11-17 08:35:15 +08:00
peizhou001
3132da2826
Deprecate ( #4864 )
...
rename DGLHeteroGraph to DGLGraph
2022-11-15 10:01:01 +08:00
Chang Liu
6566c31fba
Fix ogb/ogbn-mag/heter-RGCN example ( #4839 )
...
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-11-09 14:08:01 +08:00
Ereboas
7c788f531c
[Example] Update SEAL+NGNN for ogbl-citation2 ( #4776 )
...
* Use black for formatting
* limit line width to 80 characters.
* Use a backslash instead of directly concatenating
* file structure adjustment.
* file structure adjustment(2)
* codes for citation2
* format slight adjustment
* adjust format in models.py
* now it runs normally for all datasets.
* add comments; adjust code order.
* adjust indenting.
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-11-03 10:24:03 +08:00
Ereboas
f9805ef11c
[Example] SEAL+NGNN for ogbl-citation2 ( #4772 )
...
* Use black for formatting
* limit line width to 80 characters.
* Use a backslash instead of directly concatenating
* file structure adjustment.
* file structure adjustment(2)
* codes for citation2
* format slight adjustment
* adjust format in models.py
* now it runs normally for all datasets.
Co-authored-by: Mufei Li <mufeili1996@gmail.com >
2022-10-28 00:31:24 +08:00