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.3.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.3.0
File Size Uploaded
neuro_fuzzy_toolbox-0.3.0.tar.gz 5.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuro-fuzzy-toolbox 0.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

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