文件历史

90 次代码提交

作者 SHA1 备注 提交日期
Mufei Li ed8a7beb42 Update README.txt 2020-07-17 23:29:55 +08:00
Mufei Li b55b7cb611 Update README.txt 2020-07-17 23:28:23 +08:00
Quan Gan eae4089928 remove edge list creation 2020-06-23 21:27:10 +08:00
Mufei Li 0ee95a5e73 Update (#1419) 2020-04-04 01:22:16 +08:00
xiang song(charlie.song) 67cb7a43a0 [Feature] Deprecate multigraph (#1389)
* Deprecate multi-graph

* Handle heterograph and edge_ids

* lint

* Fix

* Remove multigraph in C++ end

* Fix lint

* Add some test and fix something

* Fix

* Fix

* upd

* Fix some test case

* Fix

* Fix

Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2020-03-28 21:31:24 +08:00
Minjie Wang 2cdc4d3c1d [Doc] Patch tutorial (#1380)
* patched 1_first

* done 2_basics

* done 4_batch

* done 1_gcn, 9_gat, 2_capsule

* 4_rgcn.py

* revert

* more fix
2020-03-22 10:21:22 +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
Minjie Wang 5967d81782 [Doc] Re-organize API docs and tutorials (#1222)
* reorg tutorials and api docs

* fix
2020-01-26 21:26:34 +08:00
Mufei Li a199b58a6a Fix (#1195) 2020-01-12 02:47:29 +08:00
Minjie Wang 17aab8128a [Doc] update working with multiple backend section (#1128)
* update work with different backend section

* fix some warnings

* Update backend.rst

* Update index.rst

Co-authored-by: VoVAllen <VoVAllen@users.noreply.github.com>
2019-12-24 17:32:56 +08:00
John Andrilla 41114b8758 [Doc] Tree-LSTM in DGL, edit pass for readability (#1031)
* [Doc] Tree-LSTM in DGL, edit pass for readability

Edit for grammar and style. 
How about deleting the last line? "Besides, you..." It needs a transition or some context.

* Update tutorials/models/2_small_graph/3_tree-lstm.py

* Update tutorials/models/2_small_graph/3_tree-lstm.py
2019-12-17 14:14:18 +08:00
John Andrilla f36a451420 [Doc] Old wines new title, edit for grammar and style (#1027)
* Old wines new title, edit for grammar and style

new descriptive title here and an edit pass @aaronmarkham

* Update tutorials/models/4_old_wines/README.txt
2019-12-16 11:24:58 +08:00
Da Zheng 48c7ec4427 [Doc] Fix gcn tutorial (#1080)
* don't have activation.

* add evaluation.

* address comment.
2019-12-10 02:10:51 -08:00
John Andrilla 7784f0668d [Doc] Small graphs readme.txt, edit pass (#1030)
* [Doc] Small graphs readme.txt, edit pass

Edit for grammar and style. Should this be an .rst on .txt?

* Update README.txt
2019-12-05 13:48:39 +08:00
John Andrilla 5fc7eb6d97 [Doc] Generative models, edit pass (#1035)
* [Doc] Generative models, edit pass

Edit for grammar and style. Can you clarify "Instead of and/or"?

* Update tutorials/models/3_generative_model/5_dgmg.py

* Update tutorials/models/3_generative_model/5_dgmg.py

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

* Update tutorials/models/3_generative_model/5_dgmg.py

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

* Update tutorials/models/3_generative_model/5_dgmg.py

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

* Update tutorials/models/3_generative_model/5_dgmg.py

Co-Authored-By: Aaron Markham <markhama@amazon.com>
2019-12-03 09:38:47 +08:00
John Andrilla f45178c334 [Doc] Generative models, edit for readability (#1033)
Edit pass for grammar and style
2019-12-02 14:54:10 +08:00
John Andrilla d6dfaa9b74 [Doc] Capsule network tutorial, edit pass (#1026)
Edited for grammar and style.
2019-12-01 22:26:51 +08:00
John Andrilla 10b104dd35 [Doc] Transformer tutorial, edit for readability (#1025)
Edit pass for grammar and style
2019-12-01 11:25:51 +08:00
John Andrilla a2b8d8e4e7 [Doc] Giant graph tutorial edit for grammar and style (#1020)
* Edit for readability

* giant_graph_readme edit for grammar

* NodeFlow and Sampling edit pass for grammar

* Update tutorials/models/1_gnn/9_gat.py

* Update tutorials/models/1_gnn/9_gat.py
2019-11-30 12:31:59 +08:00
John Andrilla dd09f15fa7 [Doc] Stochastic steady-state embedding (SSE) Edit for readability
Revisions for grammar and style
2019-11-30 11:37:17 +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
John Andrilla 287f387b8c Edit for readability (#1002)
Grammar and style updates
2019-11-29 10:53:11 +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 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 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
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
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
John Andrilla 8d84865548 Voice and tone updates for readability (#938)
Simple editorial updates
2019-10-21 09:06:56 +08:00
Quan (Andy) Gan 9d64927c57 [Doc] Fix hetero tutorial directory (#912) 2019-10-08 22:21:22 +08:00
Quan (Andy) Gan 3ee7e11268 [Hetero][Tutorial] Heterograph tutorials (#878)
* heterograph tutorial skeleton

* [WIP][Tutorial] Heterogeneous graph tutorial

* fix

* update
2019-10-08 15:33:54 +08:00
Da Zheng c2b8af452c change the backend to mxnet. (#894) 2019-10-01 23:42:21 -07:00
Da Zheng be58224f0e [CI] enable tutorial test in CI. (#631)
* enable tutorial test in CI.

* reduce overhead.
2019-06-13 02:31:36 -07:00
Minjie Wang e16e895d53 [Doc] fix some document warnings (#645)
* fix doc

* fix some format and warnings

* fix
2019-06-11 13:41:41 -04:00
Minjie Wang ebbb6296f9 [Doc] doc page for builtin functions (#642)
* doc page for builtin functions; install from source doc

* upload rst

* update
2019-06-10 18:29:28 -04:00
VoVAllen c5ab5b7204 [Doc] Tutorial minor fix (#601)
* minor fix

* Update 2_giant.py
2019-06-03 19:13:18 +08:00
Da Zheng 0554824830 [Doc] fix the giant graph tutorial (#591)
* fix.

* fix.
2019-06-01 14:37:17 -07:00
Da Zheng f728839bb7 [Doc] tutorial of components for giant graph (#590)
* tutorial.

* update images.
2019-05-31 17:37:43 +08:00
Da Zheng acefb9a9f0 [BUGFIX] fix the problems in the sampling tutorial. (#523)
* add index.

* update.

* update tutorial.
2019-05-07 18:19:07 -07:00
Da Zheng edf3951c18 [Tutorial] add sampling tutorial. (#522)
* add sampling tutorial.

* add readme

* update author list.

* fix indent in the code.

* rename the file.

* update tutorial.

* fix the last API.

* update image.
2019-05-07 17:29:18 -07:00
Hao Zhang ca48787ae4 fix tutorial (#506)
* Update 9_gat.py

* Update 1_gcn.py
2019-04-23 15:30:59 +08:00
Quan (Andy) Gan 681e5217dd [Refactor] Sampler code refactor (#454)
* refactored sampler code

* docstring

* fix tutorial
2019-03-18 10:41:35 -04:00
Da Zheng bea07b41b3 [Sampler] fix the API of neighbor sampler. (#407)
* don't return aux_info.

* fix sampler test.

* fix sse.

* fix.

* add comment.
2019-02-28 13:45:21 -08:00
Mufei Li 3f891b64b7 [Tutorial] Fix gat tutorial (#420) 2019-02-28 11:10:14 -05:00
Hao Zhang 98ff82e527 [Doc] Tutorial for GAT (#400)
* 9_gat.py

* readme

* Update 9_gat.py

* Update 9_gat.py

* fix format
2019-02-20 22:50:55 -05:00
Da Zheng f370e628cd [Feature] add NodeFlow API (#361)
* sample layer subgraphs.

* fix.

* fix.

* add layered subgraph.

* fix lint.

* fix.

* fix tutorial.

* fix.

* remove copy_to_parent.

* add num_layers

* move sampling code to sampler.cc

* fix.

* move subgraph construction out.

* Revert "move subgraph construction out."

This reverts commit 24b3d13b0d8ed5f91847ea75a7674ee8f7d45cff.

* change to NodeFlow.

* use NodeFlow in Python.

* use NodeFlowIndex.

* add node_mapping and edge_mapping.

* remove unnecessary code in SSE tutorial.

* Revert "remove unnecessary code in SSE tutorial."

This reverts commit 093f0413d5fa2e63ca5f80c46c80a126a9fb720c.

* fix tutorial.

* move to node_flow.

* update gcn cv updater.

* import NodeFlow.

* update.

* add demo code for vanilla control variate sampler.

* update.

* update.

* add neighbor sampling.

* return flow offsets.

* update node_flow.

* add test.

* fix sampler.

* fix graph index.

* fix a bug in sampler.

* fix map_to_layer_nid and map_to_flow_eid.

* fix apply_flow.

* remove model code.

* implement flow_compute.

* fix a bug.

* reverse the csr physically.

* add mini-batch test.

* add mini batch test.

* update flow_compute.

* add prop_flows

* run on specific nodes.

* test copy

* fix a bug in creating frame in NodeFlow.

* add init gcn_cv_updater.

* fix a minor bug.

* fix gcn_cv_updater.

* fix a bug.

* fix a bug in NodeFlow.

* use new h in gcn_cv_updater.

* add layer_in_degree and layer_out_degree.

* fix gcn_cv_updater for gpu.

* temp fix in NodeFlow for diff context.

* allow enabling/disabling copy back.

* add with-updater option.

* fix a bug in computing degree.

* add with-cv option.

* rename and add comments.

* fix lint complain.

* fix lint.

* avoid assert.

* remove assert.

* fix.

* fix.

* fix.

* fix.

* fix the methods in NodeFlow.

* fix lint.

* update SSE.

* remove gcn_cv_updater.

* correct comments for the schedulers.

* update comment.

* add map_to_nodeflow_nid

* address comment.

* remove duplicated test.

* fix int.

* fix comments.

* fix lint

* fix.

* replace subgraph with NodeFlow.

* move view.

* address comments.

* fix lint.

* fix lint.

* remove static_cast.

* fix docstring.

* fix comments.

* break SampleSubgraph.

* move neighbor sampling to sampler.cc

* fix comments.

* rename.

* split neighbor_list.

* address comments.

* fix.

* remove TODO.
2019-02-19 15:49:28 -08:00
Zihao Ye ae1806f651 [Bugfix] RGCN tutorial (#388)
* fix rgcn tutorial

* small fix

* upd
2019-02-15 11:14:56 +08:00
Mufei Li dedfd908c6 [Fix] Fix link in batched graph blog (#367) 2019-01-26 11:04:05 -05:00
Mufei Li 3cbfc25a32 [Tutorial] Batched Graph Classification (#360)
* batched_graph_classification

* Fix

* Fix

* update tutorial with new dataset

* Final

* Fix doc for dataset

* small fix
2019-01-25 15:13:52 -05:00