Adaptive Neuro Fuzzy Inference System Implementation in Python.
Project description
∑ 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 -m lazuardy_anfis.tests
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
: Gaussiangbellmf
: Generalized bellsigmf
: 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
Built Distribution
File details
Details for the file lazuardy_anfis-0.0.8.tar.gz
.
File metadata
- Download URL: lazuardy_anfis-0.0.8.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f82a8746366bfddcde8830118b7ea023a2c60804fdf8bd8d86801fe161c6c4 |
|
MD5 | e63d541f3f52ef524f63a02e69540080 |
|
BLAKE2b-256 | 45e1b8a85e6ea38ed135be35dd5a9a34f9fe66d3a974e5797a6cd3669c2594d6 |
File details
Details for the file lazuardy_anfis-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: lazuardy_anfis-0.0.8-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319b49969ecac1f94dd2bbdb10a5bd1f13b4a51ccd876a3118dcb21476991aba |
|
MD5 | b2896282e8b40a37711f89cd4f711290 |
|
BLAKE2b-256 | cb64d48d810cf9b1e678ac8e74b111982e009718c8d257f34f1a3d32b395fe73 |