1. 04 Oct, 2019 2 commits
  2. 03 Oct, 2019 3 commits
  3. 02 Oct, 2019 4 commits
    • Da Zheng's avatar
      [KG][Model] Knowledge graph embeddings (#888) · 15b951d4
      Da Zheng authored
      * 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
      
      * init version.
      
      * change default value of regularization.
      
      * avoid specifying adversarial_temperature
      
      * use default eval_interval.
      
      * remove original model.
      
      * remove optimizer.
      
      * set default value of num_proc
      
      * set default value of log_interval.
      
      * don't need to set neg_sample_size_valid.
      
      * remove unused code.
      
      * use uni_weight by default.
      
      * unify model.
      
      * rename model.
      
      * remove unnecessary data sampler.
      
      * remove the code for checkpoint.
      
      * fix eval.
      
      * raise exception in invalid arguments.
      
      * remove RowAdagrad.
      
      * remove unsupported score function for now.
      
      * Fix bugs of kg
      Update README
      
      * Update Readme for mxnet distmult
      
      * Update README.md
      
      * Update README.md
      
      * revert changes on dmlc
      
      * add tests.
      
      * update CI.
      
      * add tests script.
      
      * reorder tests in CI.
      
      * measure performance.
      
      * add results on wn18
      
      * remove some code.
      
      * rename the training script.
      
      * new results on TransE.
      
      * remove --train.
      
      * add format.
      
      * fix.
      
      * use EdgeSubgraph.
      
      * create PBGNegEdgeSubgraph to simplify the code.
      
      * fix test
      
      * fix CI.
      
      * run nose for unit tests.
      
      * remove unused code in dataset.
      
      * change argument to save embeddings.
      
      * test training and eval scripts in CI.
      
      * check Pytorch version.
      
      * fix a minor problem in config.
      
      * fix a minor bug.
      
      * fix readme.
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      15b951d4
    • Da Zheng's avatar
      fix compile error on Mac. (#896) · 1c00f3a8
      Da Zheng authored
      1c00f3a8
    • Da Zheng's avatar
      [Test] reduce test. (#895) · d0eae92e
      Da Zheng authored
      * reduce test.
      
      * increase timeout for unittest.
      d0eae92e
    • Da Zheng's avatar
      change the backend to mxnet. (#894) · c2b8af45
      Da Zheng authored
      c2b8af45
  4. 01 Oct, 2019 1 commit
  5. 30 Sep, 2019 3 commits
  6. 29 Sep, 2019 1 commit
    • Minjie Wang's avatar
      [Hetero][Model] RGCN for heterogeneous input (#885) · 1c91f460
      Minjie Wang authored
      * new hetero RGCN
      
      * bgs running
      
      * fix gpu
      
      * am dataset
      
      * fix bug in label preparation
      
      * Fix AM training; add result
      
      * rm sym link
      
      * new embed layer; mutag
      
      * mutag matched; other fix
      
      * minor fix
      
      * dataset refactor
      
      * new data loading
      
      * rm old files
      
      * refactor
      
      * docstring
      
      * include literal nodes in AIFB dataset
      
      * address comments
      
      * docstring
      1c91f460
  7. 28 Sep, 2019 4 commits
    • Da Zheng's avatar
      Sort csr (#886) · 65e1ba4f
      Da Zheng authored
      * sort
      
      * sort in parallel.
      
      * fix a bug in sorting adj
      
      * rename.
      
      * add more comments.
      
      * accelerate GetData
      
      * fix tests.
      
      * avoid sorting multiple times.
      
      * add test.
      
      * change back.
      
      * sort.
      
      * add sort_csr.
      
      * Fix a bug.
      
      * fix.
      
      * revert modifcation.
      
      * rename
      
      * speed up EdgeIds.
      65e1ba4f
    • VoVAllen's avatar
      [Fix] Fix serialize NDArray when shape is 0 (#884) · 54e1ef2e
      VoVAllen authored
      * fix
      
      * fix bugs
      54e1ef2e
    • VoVAllen's avatar
      Add contributor (#887) · 599ed868
      VoVAllen authored
      * Update CONTRIBUTORS.md
      
      * Update CONTRIBUTORS.md
      599ed868
    • Zardinality's avatar
      [Model] Add Pytorch example for Cluster GCN (#877) · 51a73504
      Zardinality authored
      * initial commit of cluster GCN
      
      * update readme
      
      * fix small bugs running ppi
      
      * nearly sota ppi training script&update readme
      
      * rm unused imports&add shebang line to scripts
      
      * minor comments&readme appended
      
      * add rnd seed control&update readme
      51a73504
  8. 27 Sep, 2019 2 commits
    • Mufei Li's avatar
      [Model][Hetero] HAN (#868) · c03046a0
      Mufei Li authored
      * 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
      c03046a0
    • VoVAllen's avatar
      [Fix] Fix Transform (#876) · e16667bf
      VoVAllen authored
      * add transform
      
      * lint
      
      * lint
      
      * fix
      
      * fixmx
      
      * fix
      
      * add test
      
      * fix typo
      
      * fix default num_classes
      
      * change to non-inplace operation
      
      * fix lint
      
      * fix
      
      * fix
      
      * fix lint
      
      * fixlint
      e16667bf
  9. 26 Sep, 2019 3 commits
    • Minjie Wang's avatar
      [Model][Hetero] GCMC using new hetero APIs (#860) · 9737b270
      Minjie Wang authored
      * init
      
      * rm data
      
      * README
      
      * fix rating values that are not decimal
      
      * rm stale codes
      
      * small fix
      
      * upd
      
      * rewrite decoder
      
      * fix many
      
      * many fix; performance matched
      
      * upd; handle sparse input
      
      * upd
      
      * address comments
      
      * more docstring; download data automatically
      
      * shared param mode
      9737b270
    • Quan (Andy) Gan's avatar
      [Sampler] Metapath sampler for metapath2vec (#861) · e3921d5d
      Quan (Andy) Gan authored
      * metapath sampler
      
      * lint & fixes
      
      * lint x2
      
      * lint x3
      
      * fix windows
      
      * remove max_cycle argument
      
      * add todo note
      e3921d5d
    • Da Zheng's avatar
      Improve edge sampler (#881) · 1db697ec
      Da Zheng authored
      * optimizer for sampling all negative edges.
      
      * allow to disable checking false negative.
      
      * fix lint.
      
      * fix docstring.
      
      * fix for comment.
      
      * add comments.
      1db697ec
  10. 23 Sep, 2019 1 commit
  11. 22 Sep, 2019 2 commits
  12. 20 Sep, 2019 1 commit
  13. 19 Sep, 2019 1 commit
  14. 17 Sep, 2019 1 commit
    • Minjie Wang's avatar
      [Hetero] New syntax (#824) · 9b4d6079
      Minjie Wang authored
      * 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
      9b4d6079
  15. 16 Sep, 2019 2 commits
  16. 14 Sep, 2019 2 commits
    • Zihao Ye's avatar
      upd (#857) · a8c28825
      Zihao Ye authored
      a8c28825
    • xiang song(charlie.song)'s avatar
      [Feature] x_dot_x builtin kernel support (#831) · 0a56d652
      xiang song(charlie.song) authored
      * 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
      
      * Start implementing masked-mm kernel.
      
      Add base control flow code.
      
      * Add masked dot declare
      
      * Update func/variable name
      
      * Skeleton compile OK
      
      * Update Implement. Unify BinaryDot with BinaryReduce
      
      * New Impl of x_dot_x, reuse binary reduce template
      
      * Compile OK.
      
      TODO:
      1. make sure x_add_x, x_sub_x, x_mul_x, x_div_x work
      2. let x_dot_x work
      3. make sure backward of x_add_x, x_sub_x, x_mul_x, x_div_x work
      4. let x_dot_x backward work
      
      * Fix code style
      
      * Now we can pass the tests/compute/test_kernel.py for add/sub/mul/div forward and backward
      
      * Fix mxnet test code
      
      * Add u_dot_v, u_dot_e, v_dot_e unitest.
      
      * Update doc
      
      * Now also support v_dot_u, e_dot_u, e_dot_v
      
      * Add unroll for some loop
      
      * Add some Opt for cuda backward of dot builtin.
      
      Backward is still slow for dot
      
      * Apply UnravelRavel opt for broadcast backward
      
      * update docstring
      0a56d652
  17. 11 Sep, 2019 3 commits
  18. 10 Sep, 2019 2 commits
    • Mufei Li's avatar
      [Model Zoo] Fix JTNN (#843) · 9df8cd32
      Mufei Li authored
      * Update
      
      * Update
      
      * Update
      
      * Update
      
      * Update
      9df8cd32
    • VoVAllen's avatar
      [Fix on Mac] Data format (#848) · 4e0e6697
      VoVAllen authored
      * Add serialization
      
      * add serialization
      
      * add serialization
      
      * lalalalalalalala
      
      * lalalalalalalala
      
      * serialize
      
      * serialize
      
      * nnn
      
      * WIP: import tvm runtime node system
      
      * WIP: object system
      
      * containers
      
      * tested basic container composition
      
      * tested custom object
      
      * tmp
      
      * fix setattr bug
      
      * tested object container return
      
      * fix lint
      
      * some comments about get/set state
      
      * fix lint
      
      * fix lint
      
      * update cython
      
      * fix cython
      
      * ffi doc
      
      * fix doc
      
      * WIP: using object system for graph
      
      * c++ side refactoring done; compiled
      
      * remove stale apis
      
      * fix bug in DGLGraphCreate; passed test_graph.py
      
      * fix bug in python modify; passed utest for pytorch/cpu
      
      * fix lint
      
      * Add serialization
      
      * Add serialization
      
      * fix
      
      * fix typo
      
      * serialize with new ffi
      
      * commit
      
      * commit
      
      * commit
      
      * save
      
      * save
      
      * save
      
      * save
      
      * commit
      
      * clean
      
      * Delete tt2.py
      
      * fix lint
      
      * Add serialization
      
      * fix lint 2
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * Fix Lint
      
      * Add serialization
      
      * Change to Macro
      
      * fix
      
      * fix
      
      * fix bugs
      
      * refactor
      
      * refactor
      
      * updating dmlc-core to include force flag
      
      * trying tempfile
      
      * delete leaked pointer
      
      * Fix assert
      
      * fix assert
      
      * add comment and test case
      
      * add graph labels
      
      * add load labels
      
      * lint
      
      * lint
      
      * add graph labels
      
      * lint
      
      *  fix windows
      
      * fix
      
      * update dmlc-core to latest
      
      * fix
      
      * fix camel naming
      
      * fix
      
      * poke ci
      4e0e6697
  19. 09 Sep, 2019 2 commits
    • VoVAllen's avatar
      [Feature] Data format (#728) · 0fb13f7b
      VoVAllen authored
      * Add serialization
      
      * add serialization
      
      * add serialization
      
      * lalalalalalalala
      
      * lalalalalalalala
      
      * serialize
      
      * serialize
      
      * nnn
      
      * WIP: import tvm runtime node system
      
      * WIP: object system
      
      * containers
      
      * tested basic container composition
      
      * tested custom object
      
      * tmp
      
      * fix setattr bug
      
      * tested object container return
      
      * fix lint
      
      * some comments about get/set state
      
      * fix lint
      
      * fix lint
      
      * update cython
      
      * fix cython
      
      * ffi doc
      
      * fix doc
      
      * WIP: using object system for graph
      
      * c++ side refactoring done; compiled
      
      * remove stale apis
      
      * fix bug in DGLGraphCreate; passed test_graph.py
      
      * fix bug in python modify; passed utest for pytorch/cpu
      
      * fix lint
      
      * Add serialization
      
      * Add serialization
      
      * fix
      
      * fix typo
      
      * serialize with new ffi
      
      * commit
      
      * commit
      
      * commit
      
      * save
      
      * save
      
      * save
      
      * save
      
      * commit
      
      * clean
      
      * Delete tt2.py
      
      * fix lint
      
      * Add serialization
      
      * fix lint 2
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * Fix Lint
      
      * Add serialization
      
      * Change to Macro
      
      * fix
      
      * fix
      
      * fix bugs
      
      * refactor
      
      * refactor
      
      * updating dmlc-core to include force flag
      
      * trying tempfile
      
      * delete leaked pointer
      
      * Fix assert
      
      * fix assert
      
      * add comment and test case
      
      * add graph labels
      
      * add load labels
      
      * lint
      
      * lint
      
      * add graph labels
      
      * lint
      
      *  fix windows
      
      * fix
      
      * update dmlc-core to latest
      
      * fix
      
      * fix camel naming
      0fb13f7b
    • Zihao Ye's avatar
      [Feature] Edge softmax on a subset of edges in the graph. (#842) · 6a4b5ae9
      Zihao Ye authored
      * upd
      
      * add test
      
      * fix
      
      * upd
      
      * merge
      
      * hotfix
      
      * upd
      
      * fix
      6a4b5ae9