|
1 | 1 | #Hypergraph Toolbox: HyperG |
2 | | -A toolbox for hypergraph including edge construction, graph construction and graph/hypergraph convolution. |
| 2 | +**HyperG** is a python toolbox for hypergraph-based deep learning, which is built upon [pytorch](https://pytorch.org/). |
| 3 | + Edge in hypergraph named hyperedge can link more than two nodes, which allows hyperedge to express more than pair-wise |
| 4 | + relation(like: entity-attribute relation, group relation, hierarchical relation and so on.). Thus, hypergraph owns more |
| 5 | + powerful model ability than common graph. |
| 6 | + |
| 7 | + It consists of sparse hypergraph construction, fusion, convolution operations, convenient util functions for medical |
| 8 | + image(MRI, Pathology, etc.), 3D(point cloud, view-based graph, etc.) and other hypergraph applications(to be continue...). |
| 9 | + Hypergrpah inductive learning and hypergraph transductive learning examples is also included in this toolbox. What's more, |
| 10 | + we write several examples that deploy hypergraph in different tasks like: Classification, Segmentation and Regression. |
| 11 | + |
| 12 | + The supported operations include: |
| 13 | + |
| 14 | + * **Hyperedge base operations**: compute hyperedge/node degree, add/remove hypergraph self loop, count hyperedge/node number, |
| 15 | + |
| 16 | + * **Hyperedge construction operations**: construct hyperedge group from grid-like structure (image) with spatial neighbors, |
| 17 | + construct hyperedge group from feature spatial neighbors. K Nearest Neighbors algorithm is supported here. |
| 18 | + |
| 19 | + * **Hyperedge group/Hypergraph fusion operations**: fusion hypergraphs with concatenate constructed hypergraph incidence matrix. |
| 20 | + |
| 21 | + * **Hypergraph Convolution**: the common hyconv(hypergrpah convolution) ([Feng et al. AAAI2019](https://github.com/iMoonLab/HGNN)) |
| 22 | + is implemented here. |
| 23 | + |
| 24 | + * **models**: HGNN([Feng et al. AAAI2019](https://github.com/iMoonLab/HGNN)) with two hyconv layers, ResNet(18, 34, 50, 101, 152) |
| 25 | + ([He et al.](https://arxiv.org/abs/1512.03385)), and ResNet_HGNN a combination of ResNet and HGNN for image input and real-time |
| 26 | + construct hypergraph supported. |
| 27 | + |
| 28 | + * **utils**: some convenient util functions(to be continue... ): |
| 29 | + * **data**: multiple modality data supported (to be continue...) |
| 30 | + * **mri**: mri series read and write functions. |
| 31 | + * **pathology**: sample patches from WSI slide return patch coordinates(left top point) and patch width and height. |
| 32 | + draw sampled patches on WSI slide function for overview or visualization. |
| 33 | + * **meter**: evaluate meters in hypergraph learning. |
| 34 | + * **inductive**: *C-Index Meter* for survival prediction. |
| 35 | + * **transductive**: compute class accuracy in classification task for transductive learning, compute IOU Score for |
| 36 | + segmentation task in transductive learning. |
| 37 | + * **visualization**: some visualization functions. |
| 38 | + * **transductive**: visualize segmentation result in transductive learning. |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + including edge construction, graph construction and graph/hypergraph convolution. |
0 commit comments