Welcome to pyanfis! here you will be able to find a project that will allow you to use Fuzzy Logic in conjunction with pytorch. This framework is based on Jang's.
You should use pyanfis if:
-
You aim to handle non-linearities between inputs and outputs. Unlike feed-forward neural networks, which might require a larger number of layers and neurons to capture complex non-linearities, ANFIS uses fuzzy logic to model these relationships more efficiently.
-
You want to add Interpretability to your model, as ANFIS systems provide a clear understanding of how inputs are transformed into outputs.
-
An ANFIS can achieve comparable performance to deep neural networks with fewer training samples.
-
An ANFIS model will allow you to incorporate domain-specific knowledge into the model through the definition of fuzzy rules and membership functions.
-
If your models are prone to overfitting, an ANFIS and its fuzzy logic-based structure will inherently imposes constraints on the model complexity, which helps prevent overfitting.
Currently pyanfis has only been tested can be used to solve prediction problems and control problems. In future updates, it will be posible to use it in conjunction with convolutional layers to classify images or to substitude encoders/decoders in different applications.
You just need to use on your terminal:
pip install pyanfis
or
pip3 install pyanfis