TNLearn: Task-based Neurons for Learning

_images/logo.png https://img.shields.io/badge/Python-3.9%2B-brightgreen.svg https://img.shields.io/badge/License-BSD_3--Clause-blue.svg https://img.shields.io/badge/pypi-v0.1.0-orange?logo=PyPI https://img.shields.io/github/stars/NewT123-WM/tnlearn?style=flat&logo=github

TNLearn

tnlearn , a Python package for implementing task-based neurons that aims to be easy to use, versatile for different data, and performant on different tasks.

  • Easy-to-use: It provides a zero-barrier package for novices and a state-of-the-art benchmark for experienced researchers. Users can get results in 8 lines of code.

  • Versatile: TNLearn constructs task-based neurons which are versatile for different data such as tabular data, images, and time-series. Users only need to collect the input and output data.

  • Performant: Because task-based neurons capture the useful prior knowledge from task-related data, the network that is made up of task-based neurons can integrate the task-driven forces, which given the same structure should outperform the network of generic neurons.

Installation

This page provides a brief introduction to graph matching and some guidelines for using pygmtools. If you are seeking some background information, this is the right place!

Important

Please ensure that the versions of packages meet the requirements:

 1h5py~=3.10.0
 2numpy~=1.26.2
 3tnlearn~=0.1
 4torch~=2.1.0
 5sympy~=1.12
 6setuptools~=68.0.0
 7scikit-learn~=1.4.0
 8scipy~=1.12.0
 9joblib~=1.3.2
10requests~=2.31.0
11networkx~=3.2.1
12matplotlib~=3.8.3
13pandas~=2.2.0
14packaging~=23.2
15ipython~=8.18.1
16tqdm~=4.66.2

Run the following command to install TNLearn from PyPI:

1pip install tnlearn

The Team

tnlearn is a work by:

Citing

If you find tnlearn useful, please cite it in your publications.

License

tnlearn is released under the BSD 3-Clause License.

About Version Update

We plan to keep this package up-to-date by including more architectures such as transformer and Mamba.