Skip to content

iMoonLab/THU-HyperG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THU-Moon: A python toolbox for hypergraph learning

Introduction

THU-Moon is a python toolbox for hypergraph learning. Hypergraph is a generalization of graph, which is composed of a set of nodes and a set of hyperedges. Different from simple graph, in which each edge connect a pair of nodes, each hyperedge can connect any number of nodes in hypergraph. The flexible edge degree in hypergraph enables the hypergraph model to formulate the high-order correlation of data.

Hypergraph learning is mainly consisted of two procedures, hypergraph generation and learning on hypergraph. Thus, in this toolbox, we provide several hypergraph generation methods and learning methods on hypergraph. Some useful utilities are also included in this toolbox. Besides, we provide some examples about how to employ this toolbox in the tasks like classification and segmentation.

Specifically, it provides the following functionalities:

  • Hypergraph generation methods: knn based, epsilon ball based, clustering based, l1 representation based and grid based methods.
  • Learning on hypergraph methods: transductive learning, inductive learning, diffusion and clustering methods.
  • Utils: some preprocessing and evaluation methods.

Installation

You can start with:

pip install thumoon

or install from source

git clone https://github.com/iMoonLab/THU-Moon.git
pip install .

Running Example

git clone https://github.com/iMoonLab/THU-Moon.git
cd example
python gesture_classification.py

Citing

Contributing

We appreciate all contributions to improve THU-Moon. Pull requests are always welcomed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages