Skip to main content

Neuro-Fuzzy Toolbox

PyPI version Python Versions Documentation Status License: MIT

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, homogeneous h_ANFIS, and rule_reduced_ANFIS for 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_ANFIS models, 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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuro-fuzzy-toolbox 0.2.0
File Size Uploaded
neuro_fuzzy_toolbox-0.2.0.tar.gz 5.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuro-fuzzy-toolbox 0.2.0
File Interpreter ABI Platform
neuro_fuzzy_toolbox-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 MB

Release files / neuro_fuzzy_toolbox-0.2.0.tar.gz

Download URL neuro_fuzzy_toolbox-0.2.0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
61b9087ee78fbd7847ce8dce99b85e7d6e934830932f99590198fc0e6a3e3685
BLAKE2b-256 checksum
How to use checksums
46d76c595e5a0d913f68e81bb4c021b73a2f0628d35efb95ac8d03b6e0a5d262
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.2.0-py3-none-any.whl

Download URL neuro_fuzzy_toolbox-0.2.0-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66341fc606b91b4ebf682c621fa252c51cbcfa50a944cba67f36ea4d8c2b8bca
BLAKE2b-256 checksum
How to use checksums
43e64da8abc4456e8985d55a10a86c1cc898c8558227fdfa8bc578f6e664b3f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page