Zihao Ye
af61e2fbb4
[Feature] Support nn modules for bipartite graphs. ( #1392 )
...
* init gat
* fix
* gin
* 7 nn modules
* rename & lint
* upd
* upd
* fix lint
* upd test
* upd
* lint
* shape check
* upd
* lint
* address comments
* update tensorflow
Co-authored-by: Quan Gan <coin2028@hotmail.com >
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com >
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com >
2020-03-29 16:48:38 +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
3efb5d8ecf
[NN] Add HeteroGraphConv module for cleaner module definition ( #1385 )
...
* Add HeteroGraphConv
* add custom aggregator; some docstring
* debugging
* rm print
* fix some acc bugs
* fix initialization problem in weight basis
* passed tests
* lint
* fix graphconv flag; add error message
* add mxnet heteroconv
* more fix for mx
* lint
* fix torch cuda test
* fix mx test_nn
* add exhaust test for graphconv
* add tf heteroconv
* fix comment
2020-03-27 18:47:06 +08:00
Mufei Li
0f40c6e49c
[Hetero] Replace card with num_nodes
...
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com >
2020-03-20 16:56:53 +08:00
Quan (Andy) Gan
4af02022b2
[Bug] Multiple fixes ( #1374 )
...
* multiple fixes
* lint
* lint x2
2020-03-19 11:19:44 +08:00
Quan (Andy) Gan
0a51dc5435
[Bug] Fix dsttype in GraphSAGE minibatch model ( #1371 )
...
* fix for new ntype API for blocks
* adding two new interfaces
2020-03-18 23:57:03 +08:00
Minjie Wang
6111ea4665
[Model] RGCN mini-batch training; Better bipartite graph support ( #1337 )
...
* change the model to use node embedding only
* minibatch training
* add readme
* small fix
* backward-compatible
* backward compatible
* modify to_block; rgcn changed
* fix
* fix transform
* fix bug in unittest script
* docstring
* fix lint
* add tests
* address comments; fix offline eval
* gitignore
2020-03-16 18:58:06 +08:00
Quan (Andy) Gan
a9520f71ce
[Model][Sampler] GraphSAGE model, bipartite graph conversion & remove edges API ( #1297 )
...
* remove edge and to bipartite and graphsage with sampling
* fixes
* fixes
* fixes
* reenable multigpu training
* fixes
* compatibility in DGLGraph
* rename to compact_as_bipartite
* bugfix
* lint
* add offline inference
* skip GPU tests
* fix
* addresses comments
* fix
* fix
* fix
* more tests
* more docs and unit tests
* workaround for empty slice on empty data
2020-03-08 02:38:29 +08:00
Quan (Andy) Gan
ce6e19f233
[Bugfix] Allows node types with no inbound/outbound edges ( #1323 )
...
* add num nodes in ctors
* fix
* lint
* addresses comments
* replace with constexpr
* remove function with rvalue reference
* address comments
2020-03-08 01:11:44 +08:00
Minjie Wang
5dd35580f7
[Feature] Improve sampling speed; Better pickle/unpickle; other fixes ( #1299 )
...
* improve performance of sample_neighbors
* some more improve
* test script
* benchmarks
* multi process
* update more tests
* WIP
* adding two API for state saving
* add create from state
* upd test
* missing file
* wip: pickle/unpickle
* more c apis
* find the problem of empty data array
* add null array; pickling speed is bad
* still bad perf
* still bad perf
* wip
* fix the pickle speed test; now everything looks good
* minor fix
* bugfix
* some lint fix
* address comments
* more fix
* fix lint
* add utest for random.choice
* add utest for dgl.rand_graph
* fix cpp utests
* try fix ci
* fix bug in TF backend
* upd choice docstring
* address comments
* upd
* try fix compile
* add comment
2020-03-02 23:16:05 +08:00
Minjie Wang
c7f6cf6282
[Bugfix] Consistent order for cross-type stack reducer ( #1267 )
...
* WIP
* fix shape of stack reducer
* apply merge order by edge id for stack reducer
2020-02-18 13:54:11 +08:00
Minjie Wang
f8d4264e5b
[Feature] Neighbor-hood based sampling APIs ( #1251 )
...
* WIP: working on random choices
* light slice
* basic CPU impl
* add python binding; fix CreateFromCOO and CreateFromCSR returning unitgraph
* simple test case works
* fix bug in slicing probability array
* fix bug in getting the correct relation graph
* fix bug in creating placeholder graph
* enable omp
* add cpp test
* sample topk
* add in|out_subgraph
* try fix lint; passed all unittests
* fix lint
* fix msvc compile; add sorted flag and constructors
* fix msvc
* coosort
* COOSort; CSRRowWiseSampling; CSRRowWiseTopk
* WIP: remove DType in CSR and COO; Restrict data array to be IdArray
* fix all CSR ops for missing data array
* compiled
* passed tests
* lint
* test sampling out edge
* test different per-relation fanout/k values
* fix bug in random choice
* finished cpptest
* fix compile
* Add induced edges
* add check
* fixed bug in sampling on hypersparse graph; add tests
* add ascending flag
* in|out_subgraph returns subgraph and induced eid
* address comments
* lint
* fix
2020-02-17 21:25:21 +08:00
Quan (Andy) Gan
c7c0fd0e37
[Feature] Accessing node/edge types in UDFs. ( #1243 )
...
* typed udf
* docstrings
2020-02-17 16:02:56 +08:00
Quan (Andy) Gan
365d361725
[Bug] Fix #1036 ( #1037 )
...
* fix
* unit test
2019-11-29 11:53:29 +08:00
Zhang Zhi
4f6063124b
[Graph]To(device) should return updated object ( #1057 )
...
* To(device) should return updated object
* Add test case and doc
* Add another doc
* Add descriptions and a test
* Pass test
2019-11-29 00:15:22 +08:00
Mufei Li
ead64de98e
[Hetero] Batching/Unbatching DGLHeteroGraph ( #1017 )
...
* Update
* Update
* Update
* Fix
* CI style fix
* CI fix style
* Fix
* Try CI
* Fix test
* Update
* Update
* Update
* Update
2019-11-26 14:40:50 +08:00
Mufei Li
6694f7b945
[Bug] Fix DGLHeteroGraph.edge_type_subgraph ( #1040 )
...
* Update
* Try CI
2019-11-25 03:35:25 +08:00
Quan (Andy) Gan
a1cdc7a536
minor docstring fix ( #910 )
2019-10-08 16:49:01 +08:00
Mufei Li
e2b7f745ca
[Hetero] Doc ( #892 )
...
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* style fixes & undefined name fix
* transpose=False in test
2019-10-06 20:17:40 +08:00
Quan (Andy) Gan
b3d596b5bd
extend warning to other adjacency_matrix() calls ( #904 )
2019-10-06 15:44:03 +08:00
Quan (Andy) Gan
0ca52bfc88
[Hetero] Create heterograph from dictionary of edge lists ( #882 )
...
* [Hetero] Create heterograph from dictionary of edge lists
* rename
* address comments
2019-09-30 15:41:41 +08:00
Mufei Li
c03046a08f
[Model][Hetero] HAN ( #868 )
...
* Add HAN
* Fix
* WIP; load raw ACM dataset
* DGL's own preprocessing with metapath coalescer
* various fixes
* comparison against simple logistic regression
* rename
* fix test
2019-09-27 12:53:16 +08:00
Minjie Wang
9b4d60799a
[Hetero] New syntax ( #824 )
...
* WIP. remove graph arg in NodeBatch and EdgeBatch
* refactor: use graph adapter for scheduler
* WIP: recv
* draft impl
* stuck at bipartite
* bipartite->unitgraph; support dsttype == srctype
* pass test_query
* pass test_query
* pass test_view
* test apply
* pass udf message passing tests
* pass quan's test using builtins
* WIP: wildcard slicing
* new construct methods
* broken
* good
* add stack cross reducer
* fix bug; fix mx
* fix bug in csrmm2 when the CSR is not square
* lint
* removed FlattenedHeteroGraph class
* WIP
* prop nodes, prop edges, filter nodes/edges
* add DGLGraph tests to heterograph. Fix several bugs
* finish nx<->hetero graph conversion
* create bipartite from nx
* more spec on hetero/homo conversion
* silly fixes
* check node and edge types
* repr
* to api
* adj APIs
* inc
* fix some lints and bugs
* fix some lints
* hetero/homo conversion
* fix flatten test
* more spec in hetero_from_homo and test
* flatten using concat names
* WIP: creators
* rewrite hetero_from_homo in a more efficient way
* remove useless variables
* fix lint
* subgraphs and typed subgraphs
* lint & removed heterosubgraph class
* lint x2
* disable heterograph mutation test
* docstring update
* add edge id for nx graph test
* fix mx unittests
* fix bug
* try fix
* fix unittest when cross_reducer is stack
* fix ci
* fix nx bipartite bug; docstring
* fix scipy creation bug
* lint
* fix bug when converting heterograph from homograph
* fix bug in hetero_from_homo about ntype order
* trailing white
* docstring fixes for add_foo and data views
* docstring for relation slice
* to_hetero and to_homo with feature support
* lint
* lint
* DGLGraph compatibility
* incidence matrix & docstring fixes
* example string fixes
* feature in hetero_from_relations
* deduplication of edge types in to_hetero
* fix lint
* fix
2019-09-17 15:41:57 -04:00
Quan (Andy) Gan
52d4535b61
[Hetero][RFC] Heterogeneous graph Python interfaces & Message Passing ( #752 )
...
* moving heterograph index to another file
* node view
* python interfaces
* heterograph init
* bug fixes
* docstring for readonly
* more docstring
* unit tests & lint
* oops
* oops x2
* removed node/edge addition
* addressed comments
* lint
* rw on frames with one node/edge type
* homograph with underlying heterograph demo
* view is not necessary
* bugfix
* replace
* scheduler, builtins not working yet
* moving bipartite.h to header
* moving back bipartite to bipartite.h
* oops
* asbits and copyto for bipartite
* tested update_all and send_and_recv
* lightweight node & edge type retrieval
* oops
* sorry
* removing obsolete code
* oops
* lint
* various bug fixes & more tests
* UDF tests
* multiple type number_of_nodes and number_of_edges
* docstring fixes
* more tests
* going for dict in initialization
* lint
* updated api as per discussions
* lint
* bug
* bugfix
* moving back bipartite impl to cc
* note on views
* fix
2019-08-23 15:45:37 -04:00
Da Zheng
401f22cadd
[API] Heterograph ( #657 )
...
* [Feature][RFC] Heterogeneous graph interface (#553 )
* heterogeneous graph interface
* lint
* disable lints
* disable lint checks
* change node_types to dict
* update
* update
* heterograph view
* message passing with types
* clarifications
* graph queries
* clarifications
* moving add_XXX to Base
* from_networkx
* register functions
* Update heterograph.py
* lint.
2019-06-17 16:59:04 +08:00