fuzzy-theory: Fuzzy Set Theory and Fuzzy Logic Operations in PyTorch :fire:
The fuzzy-theory library provides a PyTorch interface to fuzzy set theory and fuzzy logic
operations. It uses minimal dependencies to implement these features and is designed to be
easy to use and understand. The library is designed to be used in conjunction with PyTorch
and is built on top of PyTorch's tensor operations.
A benefit of using fuzzy-theory is that it allows for the creation of fuzzy sets and fuzzy
logic operations in a way that is compatible with PyTorch's autograd system. This means that
you can use the library to create fuzzy sets and perform fuzzy logic operations in a way that
is differentiable and can be used in neural networks and other machine learning models.
Special features :high_brightness:
- Compatible with TorchScript: Some classes may use
torch.jit.scriptortorch.jit.tracefor production environments. - Differentiable: The library is designed to be used in conjunction with PyTorch and is built on top of PyTorch's tensor operations.
- Minimal dependencies: The library uses minimal dependencies to implement these features.
- Easy to use: The library is designed to be easy to use and understand, with a simple API that is similar to PyTorch's tensor operations.
- Visualization: Formulas are written with
sympyfor LaTeX rendering and plots are stylized withscienceplotsfor publication-ready figures.
Linting :mag:
The src/ and tests/ trees are linted separately, since test code is intentionally held
to different standards than library code (e.g. white-box tests reaching into
private/internal attributes is expected, not a defect).
# lint the library itself (this is what CI runs)
pylint src/fuzzy
# lint the test suite, using its own scoped config (tests/.pylintrc)
pylint --rcfile=tests/.pylintrc tests
The --rcfile=tests/.pylintrc flag is required - pylint's config discovery only searches
upward from the current working directory, so a .pylintrc placed inside tests/ is not
picked up automatically by a bare pylint tests invocation from the repository root.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fuzzy_theory-0.0.9.tar.gz.
File metadata
- Download URL: fuzzy_theory-0.0.9.tar.gz
- Upload date:
- Size: 88.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
242078cb9fe1381c4dccd797c02080d244a743c29d7db5edc14485938d2aecf5
|
|
| MD5 |
ce6e6caeeae36986f504b96b68b447c2
|
|
| BLAKE2b-256 |
c05fd67bb60b95a074b431074f2832347bf53d3a193c780da2122475c31e45f1
|
File details
Details for the file fuzzy_theory-0.0.9-py3-none-any.whl.
File metadata
- Download URL: fuzzy_theory-0.0.9-py3-none-any.whl
- Upload date:
- Size: 111.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d82beebc04e76a6cf4224f4b51f28a95bb1928d351137cfecb64f35c2640cd87
|
|
| MD5 |
f89258e64a906908e706b644a1fc5652
|
|
| BLAKE2b-256 |
acff057f7281e56c53ba6b6d7afe942dcdb422ffaf02197bdaaca89a0b5f0f88
|