Skip to main content

highFIS is a comprehensive Python package for training and evaluating high-dimensional TSK fuzzy systems, built on PyTorch and compatible with the scikit-learn API.

Project description

highFIS

CI Documentation License: GPLv3

Python library for high-dimensional Takagi–Sugeno–Kang (TSK) fuzzy inference systems, built on PyTorch with a scikit-learn compatible API.

📦 Installation

Install from PyPI:

pip install highfis

🧠 Quick Start

from highfis import HTSKClassifierEstimator

clf = HTSKClassifierEstimator(
    n_mfs=3,
    rule_base="en",
    epochs=200,
    learning_rate=1e-3,
    ur_weight=0.01,
    random_state=42,
)
clf.fit(X_train, y_train)
print(clf.score(X_test, y_test))

Works with sklearn.pipeline.Pipeline, GridSearchCV, and cross_val_score.

🧩 Key Components

Class Module Description
GaussianMF highfis.memberships Differentiable Gaussian membership function.
MembershipLayer highfis.layers Evaluates all membership functions.
RuleLayer highfis.layers Computes firing strengths with configurable t-norm and rule base.
NormalizationLayer highfis.layers Normalizes firing strengths.
ClassificationConsequentLayer highfis.layers Linear TSK consequent aggregation.
HTSKClassifier highfis.models Full TSK pipeline as nn.Module.
HTSKClassifierEstimator highfis.estimators sklearn-compatible estimator.
InputConfig highfis.estimators Per-feature membership function configuration.

🧪 Testing & Quality

Running tests

Run the full test suite with coverage:

hatch test -c -a

This project is tested on Python 3.11 | 3.12 | 3.13 | 3.14 across Linux, Windows and macOS.

Linting & Formatting

hatch fmt

Typing

hatch run typing

Security

hatch run security

📚 Documentation

Comprehensive guides, API reference, and examples: dcruzf.github.io/highFIS.

🤝 Contributing

Issues and pull requests are welcome! Please open a discussion if you'd like to propose larger changes.

📄 License

Distributed under the GPLv3.

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

highfis-0.1.0a0.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

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

highfis-0.1.0a0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file highfis-0.1.0a0.tar.gz.

File metadata

  • Download URL: highfis-0.1.0a0.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for highfis-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 52099b714a6d7702e35bb2c4733a7e9f4d332e26ff193ad0897ce4841bc64950
MD5 86e6b63c062514ff055e6d2da9217eaa
BLAKE2b-256 f3a1160384bfa5dfabab33d448ac7ff1957bcdfc275e608f24e791bb05350653

See more details on using hashes here.

File details

Details for the file highfis-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: highfis-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for highfis-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ed5372512e1018ea5fb9b6c5e78a45b0d468d9ec5508d1e2c1676693642b564
MD5 cced2c67b58ccb040e8fad045c640825
BLAKE2b-256 a158fbb94d69bdcd40d7b22e0474d27d77c86cbfec8278d14113fa669d3a7772

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