Skip to main content

Adaptive Neuro Fuzzy Inference System Implementation in Python.

Project description

CodeQL Analysis Build PyPI License PyPI Version PyPI Python Version PyPI Implementation

∑ anfis

Adaptive Neuro Fuzzy Inference System Implementation in Python.

This project is a fork of twmeggs/anfis, with bug fixes, optimizations, and improvements so that the package can be used in further projects. All credits goes to twmeggs for the original implementation.


ℹ️ About

This ANFIS package is essentially a Python refactoring of the R code created by the team a the BioScience Data Mining Group.

As an example of an ANFIS system, this Python code works (install and run the tests.py script to see it fit the some test data) but there is much left to do in order to improve the project. Documentation and doc strings still need a large amounts of work.

All useful contributions to make this a better project will be happily received.


🚀 Getting Started

This package may then be installed by running:

pip install lazuardy_anfis

🧪 Testing

Install anfis and navigate to the location of lazuardy_anfis/tests.py.

From the command line run:

python lazuardy_anfis/tests.py

Alternatively, from the same location launch ipython and run:

run lazuardy_anfis/tests.py

This will set up and fit an ANFIS model based on the data contained in training_set.txt, using 10 epochs. Plots of the fitting errors and the model predicted output are graphed.


⭐ Features

Currently the implementation will support the use of three types of membership function:

  • gaussmf : Gaussian
  • gbellmf : Generalized bell
  • sigmf : Sigmoid

This naming is taken from scikit-fuzzy, a fuzzy logic toolkit for SciPy.

Each input variable can have an arbitrary number and mix of these membership functions.

A user can define the number of epochs that will be run. The returned ANFIS object can plot training errors, fitted results and the current shape of its membership functions (pre or post training).


This project is licensed under MIT License.

© Lazuardy 2024. All rights reserved.
PT Inovasi Kolektif Digital.
Terms of Service | Privacy Policy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazuardy_anfis-0.0.3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

lazuardy_anfis-0.0.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file lazuardy_anfis-0.0.3.tar.gz.

File metadata

  • Download URL: lazuardy_anfis-0.0.3.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for lazuardy_anfis-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e98d30805412728a4e74f1a1170c81114226000134dea8f228c7aa2d9d6c6f31
MD5 b4d81dcc947329cc598550b60760cef6
BLAKE2b-256 a5ede9e9993093542b3c1883846ad9ad095845647525c1bb56d2f4746d626ef8

See more details on using hashes here.

File details

Details for the file lazuardy_anfis-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lazuardy_anfis-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f705b9d7c14efc8d8e23543bbfd13e1d1e4b4f258f3193978e5258b8b1cca8c3
MD5 4aa289483da14c17284d028af8a73c5c
BLAKE2b-256 f917dba0984dfe3767a7c7e7a41d41a0720f647d4f5f9a7ca6be17ee4388993c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page