文件历史

246 次代码提交

作者 SHA1 备注 提交日期
张天启 9a9a06eb2f [Bug Fix] Fix undefined var bug in LegacyTUDataset (#2543)
* [Bug Fix] Fix undefined var bug in LegacyTUDataset

* upt

* [Bug Fix] Fix cache file name bug in TUDataset

Co-authored-by: Tong He <hetong007@gmail.com>
2021-01-19 13:58:01 +08:00
Xiangkun Hu 21e90cbf48 [Doc] Fix number of classes in Amazon Cobuy datasets (#2488)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Update gnn_benckmark.py

* Hide implementations that may cause confusions to the user

* fix number of classes in Amazon Cobuy datasets
2021-01-05 13:08:05 +08:00
xiang song(charlie.song) 4464b9734c Fix kg dataset len() (#2475)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-59-204.ec2.internal>
2020-12-31 23:33:21 +08:00
Mufei Li 492ad9be81 [Fix] Avoid Overloading Nonzero for PyTorch Backend (#2434)
* Update gatedgraphconv.py

* Update entity_classify.py

* Update data-process.rst

* Update reading_data.py

* Update data-process.rst

* Update utils.py

* Update knowledge_graph.py

* Update entity_classify.py

* Update rdf.py

* Update entity_classify_mb.py

* Update test_classify.py

* Update tensor.py

* Update sparse.py

* Update entity_classify_mp.py

* Update 6_line_graph.py
2020-12-20 13:12:17 +08:00
xiang song(charlie.song) 9d7bf4ea89 Fix citation data loading (#2421)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-57-25.ec2.internal>
2020-12-14 14:58:01 +08:00
Xiangkun Hu fcf1193579 [Doc] Hidden implementations that may cause confusion to the user. (#2378)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* data pipeline user guide

* remove chapter numbers

* Update data.rst

* image in dataset userguide

* update links using ref

* modify the link of save_graphs and load_graphs in dataset user guide

* move image to s3 server.

* fix links and ref

* Hide implementations that may cause confusions to the user
2020-12-03 13:09:19 +08:00
vill fe4ada23f9 Update knowledge_graph.py (#2329)
The l in "bool" is lost.

Co-authored-by: Zihao Ye <expye@outlook.com>
2020-11-10 17:33:55 +08:00
Xiangkun Hu 5f19876358 [Bugfix] GINDataset check whether labels are all valid (#2319)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* check whether the original labels are valid

* add unit test for gin dataset

* bug of asscalar in mxnet<=1.6

* mxnet<=1.6 asscalar requires ndarray to be shaped (1,)

* skip gpu while testing datasets

* Update test_data.py

* test of gin dataset takes too much time
2020-11-05 09:35:10 +08:00
chwan-rice 269983dbcd [Fix] typo (#2265)
* upd

* upd

* upd

* upd

* upd

* fix OpenMP compatibility issues

* typo

* partition

* misc

* fix typo

* num_parts=1

* import torch

* long

* print info

* print info

* print info

* upd

* remove debug code

* revert partition.py

* fix cut count

* fix cut count

* Revert "fix cut count"

This reverts commit 10926b4fd48f45c8f1ddb58be7db6c22e653effd.

* Revert "fix cut count"

This reverts commit 76465283bef093a2b4209ad70dd15d2437b2ec8a.

* type of deprecate

* typo in deprecate info

* fix typo

* use cv for partitioning

* CE

* no message

* revert

* typo

* no message

* no message

* no message

* practice

* dmlc-core

* DGLGraph

Co-authored-by: yzh119 <expye@outlook.com>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2020-10-29 23:05:36 +08:00
Sami Issaadi 8bbc84e04f [bugfix] Fix crash due to unfound attribute (#2262)
An unexpected `AttributeError` exception is launched whenever the user defines `save_dir` on `DGLDataset` instantiation and uses `self._save_dir`  within `has_cache` method.
This commit fixes the issue.
2020-10-09 09:44:38 +08:00
Mufei Li 0b00562d1f Update gindt.py (#2212) 2020-09-18 19:49:50 +08:00
Jinjing Zhou 3234189b60 Fix hdfs error when writing big data (#2186)
* update dmlc-core to latest

* fix hdfs
2020-09-12 23:58:36 +08:00
Henry Kenlay 8a227bfa03 [Bugfix] fix TUDataset labelling issue (#2165) (#2173)
* [Bugfix] fix TUDataset labelling issue (#2165)

* [Bugfix] fix TUDataset labelling issue (dmlc#2165)

* update docstring according to discussion

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2020-09-11 17:05:24 +08:00
Xiangkun Hu a102db23bf [Dataset] CoraFull dataset remove redundant reference (#2172)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Update gnn_benckmark.py
2020-09-11 15:15:06 +08:00
xiang song(charlie.song) 0cf99be378 hotfix (#2163)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-56-220.ec2.internal>
2020-09-09 11:00:31 +08:00
xiang song(charlie.song) c9c6171b9f Revert "[Feature] Basic utils to handle raw data features (#2102)" (#2147)
This reverts commit 33a8bb93bf.

Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2020-09-08 10:33:59 +08:00
xiang song(charlie.song) 33a8bb93bf [Feature] Basic utils to handle raw data features (#2102)
* add feature utils and add test for feature norm

* Add docstring and test

* upd

* dis able some test

* Update

* update doc string

* update

Co-authored-by: Ubuntu <ubuntu@ip-172-31-68-185.ec2.internal>
2020-08-27 11:36:39 +08:00
Jinjing Zhou 51ba662169 Fix GINDT and #2087 (#2103)
* fix gindt

* ff

* fix

* minor fix

* fix
2020-08-26 15:53:45 +08:00
Minjie Wang f13b9b6212 [Doc] Scan the API docs and make many changes (#2080)
* WIP: api

* dgl.sampling, dgl.data

* dgl.sampling; dgl.dataloading

* sampling packages

* convert

* subgraph

* deprecate

* subgraph APIs

* All docstrings for convert/subgraph/transform

* almost all funcs under dgl namespace

* WIP: DGLGraph

* done graph query

* message passing functions

* lint

* fix merge error

* fix test

* lint

* fix

Co-authored-by: Quan Gan <coin2028@hotmail.com>
2020-08-20 23:26:49 +08:00
Tong He 83654fdc4e fix tu dataset (#2064) 2020-08-19 18:25:56 +08:00
xiang song(charlie.song) 4edde000a4 Fix tree lstm (#2052)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-63-129.ec2.internal>
2020-08-19 10:44:10 +08:00
xiang song(charlie.song) 3d65484323 Fix mxnet gin (#2048)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-19 00:05:15 +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
Xiangkun Hu b35388020d [Bugfix] fix vocab not saved bug in SSTDataset (#2036)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Update tree.py
2020-08-17 21:59:14 +08:00
flyingcat c113a5a0d7 Update dgl_dataset.py (#2021) 2020-08-14 16:17:37 +08:00
Jinjing Zhou 5362908236 Fix save/load for old version files (#1994)
* load hetero

* fix

* more error message

* add warning

* add alias to dgl namespace

* fix tests
2020-08-12 23:45:21 +08:00
xiang song(charlie.song) e4b4fcffc2 hotfix (#1987)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-10 22:06:25 +08:00
xiang song(charlie.song) e75157738b hotfix (#1980)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-87-240.ec2.internal>
2020-08-09 11:25:13 +08:00
Zihao Ye 264d96cdf5 [bugfix] Fix a bunch of examples to be compatible with dgl 0.5 (#1957)
* upd

* upd

* upd

* upd

* upd

* upd

* fix pinsage also

* upd

* upd

* upd

Co-authored-by: Ubuntu <ubuntu@ip-172-31-29-3.us-east-2.compute.internal>
Co-authored-by: Quan Gan <coin2028@hotmail.com>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2020-08-08 01:31:23 +08:00
Minjie Wang 22167f7203 [Refactor] Enable new kernel in all message passing APIs (#1953)
* WIP: frame refactor

* new frame

* simple update_all builtin

* move all subgraph routines into the same file

* sddmm & spmm schedule; node & edge udf

* degree bucketing

* some tricky 0deg corner cases

* bug in frame append

* merge test_hetero_basics and test_basics

* some code rearange

* fix test_heterograph

* add mean spmm

* enable all builtin combinations

* pass gpu test

* pass pytorch tests

* wip

* fix some pt debugging codes

* fix bug in mxnet backward

* pass all mxnet utests

* passed tf tests

* docstring

* lint

* lint

* fix broadcasting bugs

* add warning and clamp for mean reducer

* add test for zero-degree mean

* address comments

* lint

* small fix
2020-08-07 15:40:25 +08:00
Xiangkun Hu 5d5436ba18 [Dataset] RedditDataset change data.train_mask to numpy array (#1961)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Update reddit.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-07 15:22:13 +08:00
xiang song(charlie.song) 78651016f4 [Hot fix][Dataset] knowledge graph dataset statistics output (#1952)
* Hot fix

* Fix

Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-06 20:20:20 +08:00
Xiangkun Hu 13ea9ddb06 [Doc] Fix some format issues in dataset api doc (#1951)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* update doc

Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2020-08-06 16:51:46 +08:00
Tong He 967ecb8064 [Dataset] Fix the docstring format for dgl.data section (#1941)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* update data rst

* update data doc and docstring

* API doc rst for dataset

* docstring

* update api doc

* add url format

* update docstring

* update citation graph

* update knowledge graph

* update gc datasets

* fix index

* Rst fix (#3)

* Fix syntax

* syntax

* update docstring

* update doc (#4)

* final update

* fix rdflib

* fix rdf

Co-authored-by: HuXiangkun <huxk_hit@qq.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-06 14:47:49 +08:00
Xiangkun Hu 451ed6d836 [Dataset] SBMMixtureDataset (#1920)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* SBMMixture dataset

* Update sbm.py

* fix example

* Update sbm.py

* Revert "Update sbm.py"

This reverts commit 066db5c89bd5e159981ae7cad1bfb883ea5db71d.

* Update sbm.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-04 15:06:53 +08:00
Xiangkun Hu 2c141229d5 [Dataset] RedditDataset (#1914)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* RedditDataset

* Update reddit.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 23:49:22 +08:00
Xiangkun Hu 37aa99c510 [Dataset] GNNBenchmarkDataset (#1912)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* gnn benchmark dataset

* Update gnn_benckmark.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 23:28:58 +08:00
Xiangkun Hu 001d793711 [Dataset] SSTDataset (#1918)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* SSTDataset

* Update tree.py
2020-08-03 19:15:28 +08:00
Xiangkun Hu 73b9c6f18c [Dataset] GDELTDataset (#1911)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* gdelt dataset

* Update gdelt.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 17:43:50 +08:00
Xiangkun Hu 06ea03d0f8 [Dataset] ICEWS18Dataset (#1913)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* ICEWS18Dataset

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 17:07:02 +08:00
Tong He b5be4f4bbf [Dataset] Update dataset hash with deterministic function (#1919)
* update hash with deterministic function

* update docstring

* add test on determination
2020-08-03 16:17:00 +08:00
Tong He 39ed096630 [Dataset] Builtin LegacyTUDataset and TUDataset (#1891)
* add LegacyTUDataset and TUDataset

* update docstrings and url

* update docstrings

* add hash to fix save/load

* update docstring and use hash

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 14:40:36 +08:00
Xiangkun Hu 22485e58d3 [Dataset] BitcoinOTCDataset (#1910)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* bitcoinotc dataset

* Update bitcoinotc.py
2020-08-03 12:15:04 +08:00
Xiangkun Hu d22f96feb4 [Dataset] QM7bDataset (#1915)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* QM7bDataset

* Update qm7b.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 11:58:31 +08:00
Xiangkun Hu 9bcce7bead [Dataset] PPIDataset (#1906)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Revert "Revert "PPIDataset""

This reverts commit 6938a4cbe3ac6e38d3e0188b5699e5c952a6102e.

* update doc string

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-03 00:30:01 +08:00
Xiangkun Hu 743c38401c [Dataset] KarateClubDataset (#1897)
* karateclub dataset

* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* Update karate.py

* doc string

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2020-08-02 22:39:11 +08:00
xiang song(charlie.song) cb2c4ec17b Fix (#1909)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-02 14:53:21 +08:00
xiang song(charlie.song) 303e42367d Hot Fix docstring (#1907)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-01 23:24:24 +08:00
xiang song(charlie.song) b347590a37 [Dataset] Citation graph (#1902)
* citation graph

* GCN example use new citatoin dataset

* mxnet gat

* triger

* Fix

* Fix gat

* fix

* Fix tensorflow dgi

* Fix appnp, graphsage for mxnet

* fix monet and sgc for mxnet

* Fix tagcn

* update sgc, appnp

Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-08-01 19:25:50 +08:00
Tong He 18c960a1b5 [Dataset] Builtin MiniGCDataset (#1890)
* add minigc

* fix

* update docstrings

* update docstring

* add hash to fix save/load

* update hash
2020-07-31 17:40:02 +08:00