Skip to main content

New Fuzzy Inference Systems

Reason this release was yanked:

outdated version

Project description

Project description

Powered by Kaike Sa Teles Rocha Alves

NFISiS (new fuzzy inference systems) is a package that contains new machine learning models developed by Kaike Alves during his PhD research.

Website: kaikealves.weebly.com
Documentation: Fourthcoming
Email: kaikerochaalves@outlook.com
Source code: https://github.com/kaikerochaalves/NFISiS_PyPi

It provides:

the following machine learning models in the context of fuzzy systems: NMC, NMR, NTSK, GEN_NMR, GEN_NTSK, R_NMR, R_NTSK

Code of Conduct

NFISiS is a library developed by Kaike Alves. Please read the Code of Conduct for guidance.

Call for Contributions

The project welcomes your expertise and enthusiasm!

Small improvements or fixes are always appreciated. If you are considering larger contributions to the source code, please contact by email first.

To install the library use the command:

pip install nfisis

To import the NewMandaniClassifier (NMC), simply type the command:

from nfisis.fuzzy import NewMamdaniClassifier

To import the NewMamdaniRegressor (NMR), simply type:

from nfisis.fuzzy import NewMamdaniRegressor

To import the NTSK (New Takagi-Sugeno-Kang), type:

from nfisis.fuzzy import NTSK

NewMandaniClassifier, NewMamdaniRegressor, and NTSK are new data-driven fuzzy models that automatically create fuzzy rules and fuzzy sets. You can learn more about this models in papers: https://doi.org/10.1016/j.engappai.2024.108155 and https://doi.org/10.1007/s10614-024-10670-w

The library nfisis also includes the NTSK and NMR (NewMandaniRegressor) with genetic-algorithm as attribute selection. At this time, the paper containing the proposal of these models are fourthcoming.

To import GEN_NMR type:

from nfisis.genetic import GEN_NMR

To import GEN_NTSK type:

from nfisis.genetic import GEN_NTSK

Finally, one last inovation of this library that was part of the reasearch of the PhD of Kaike Alves and it is in his forthcoming thesis is the ensemble model with fuzzy systems, reffered as to R_NMR and R_NTSK:

from nfisis.ensemble import R_NMR

from nfisis.ensemble import R_NTSK

Once you imported the libraries, you can use functions fit and predict. For example:

from nfisis.fuzzy import NTSK
model = NTSK()
model.fit(X_train, y_train)
y_pred = model.predict(y_test)

If you want to look closely to the generated rules, you can see the rules typing:

model.show_rules()

Otherwise, you can see the histogram of the rules by typing:

model.plot_hist

The fuzzy models are quite fast, but the genetic and ensembles are still a bit slow. If you think you can contribute to this project regarding the code, speed, etc., please, feel free to contact me and to do so.

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

nfisis-0.0.2.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nfisis-0.0.2-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file nfisis-0.0.2.tar.gz.

File metadata

  • Download URL: nfisis-0.0.2.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nfisis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 de2316231d30bff648ba908d44e2791b22d14ded3e1fac792ea6d9ccc7744175
MD5 2ee33f5ad76f256dbb47dc494e6ffd98
BLAKE2b-256 5f05f81000053c89301d4cc55c3403be397c97da29185111adc342d3f3d3ac0d

See more details on using hashes here.

File details

Details for the file nfisis-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nfisis-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nfisis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 12779b4831b35c38dc68cdd81610853c5d22c75112b04f4034d6808e88702dd5
MD5 0c7660b290670594731cd3c58542ed3a
BLAKE2b-256 1ee5ba64cfddaafc9bb62c89d623cf2f3df8ac24dd5a65ea1aff26cdc0d04cd5

See more details on using hashes here.

Supported by

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