Neuro-Fuzzy Toolbox
A PyTorch-based library for the design, training, and analysis of ANFIS-based neuro-fuzzy models. The toolbox provides ready-to-use model variants and training algorithms, a structural adaptation algorithm, and utilities for rule inspection and local contribution analysis. Its modular design also makes it a flexible basis for building custom training procedures and deep neuro-fuzzy architectures.
Installation
pip install neuro-fuzzy-toolbox
Features
- Three ANFIS model variants: classical
ANFIS, homogeneoush_ANFIS, andrule_reduced_ANFISfor high-dimensional settings. - Multiple training strategies: hybrid learning algorithm, single-optimizer training, and dual-optimizer training with independent premise and consequent optimizers. All strategies integrate with PyTorch loss functions and support early stopping.
- Structural adaptation: a modified SONFIS algorithm for
rule_reduced_ANFISmodels, supporting rule growing, splitting, and pruning during training. - Rule inspection and analysis: tabular export of premises and consequents,
membership function visualization, intermediate layer access, and local
rule-contribution analysis via
RulesAnalyzer. - Low-level API: direct access to premise and consequent parameter subsets for custom optimizer instantiation, and programmatic rule addition and removal at runtime.
Requirements
- torch >= 2.5 (tested with 2.5.1)
- numpy >= 2.2 (tested with 2.2.1)
- pandas >= 2.2 (tested with 2.2.3)
- matplotlib >= 3.10 (tested with 3.10.0)
Documentation
Full documentation including a usage guide, API reference, and end-to-end examples is available at: https://neuro-fuzzy-toolbox.readthedocs.io/en/latest/
Metadata
Release files for neuro-fuzzy-toolbox 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neuro_fuzzy_toolbox-0.3.0.tar.gz | 5.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neuro_fuzzy_toolbox-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 MB
Release files / neuro_fuzzy_toolbox-0.3.0.tar.gz
| Download URL | neuro_fuzzy_toolbox-0.3.0.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e8f9550a358ef318717afad512a3f272448fe8c1e5b4156f571f8be1dc2a82e
|
|
BLAKE2b-256 checksum How to use checksums |
84ab3d0fa214655eb3b20ed68260f3ef1b495f9a2c3eb965b382b98ccb66777f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / neuro_fuzzy_toolbox-0.3.0-py3-none-any.whl
| Download URL | neuro_fuzzy_toolbox-0.3.0-py3-none-any.whl |
|---|---|
| Size | 60.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d74ecbbb4ef993da7817eeb9cf6552c08547f92221821920131af1d3e31cf38
|
|
BLAKE2b-256 checksum How to use checksums |
5717c0838dfc67165b5021eff06f976c2b86bdfb646a981aa54653da99843e00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|