文件历史

718 次代码提交

作者 SHA1 备注 提交日期
caojy1998 eb1e88208a [CI] Add some notation for train_full.py and move it to a new directory (#5863)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-6-31.ap-northeast-1.compute.internal>
2023-06-20 07:47:55 +00:00
Hongzhi (Steve), Chen 135be22eca [Misc] Update the comment in examples/sampling/node_classification.py (#5874) 2023-06-20 07:47:55 +00:00
Andrei Ivanov cadb8bf000 [Doc]Removing useless dataset loading instructions for the P-GNN example. (#5861)
Co-authored-by: Mufei Li <mufeili1996@gmail.com>
2023-06-20 07:47:55 +00:00
hummingg 6e03c56a7f AIFB -> AIFBDataset (#5860) 2023-06-20 07:47:55 +00:00
Rhett Ying 62446968a7 [Examples] fix lint (#5838) 2023-06-20 07:47:55 +00:00
keli-wen c1cd61c36b [Examples] Add Sampling Examples (#5777) 2023-06-20 07:47:55 +00:00
Andrei Ivanov 76e09e00eb [Misc]Improving the output of the DCRNN training script. (#5790)
Co-authored-by: Mufei Li <mufeili1996@gmail.com>
2023-06-20 07:47:55 +00:00
Chang Liu ed69f7c2db [Example][Minor] Update README/requirements from sklearn -> scikit-learn (#5792) 2023-06-20 07:47:55 +00:00
Rhett Ying f7e2b02715 [Benchmark] update node classification for multigpu benchmark (#5674)
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
2023-06-20 07:43:05 +00:00
Rhett Ying 25fc69eb67 [Benchmark] log train time and test accuracy, choose device (#5662) 2023-06-20 07:43:05 +00: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