Skip to main content

Ferrifuzz is a fuzzy logic library for Python and Rust. It builds Mamdani, Sugeno/TSK and interval type-2 fuzzy inference systems from plain-text rules, forecasts with fuzzy time series, and gives clear error messages when something is off. The core is pure Rust.

pip install ferrifuzz
Get started

How much should you tip? Drag the line to rate the service.

Service at 3.5 out of 10 gives a 10.0% tip.

  • IF service IS poor THEN tip IS low0.50
  • IF service IS good THEN tip IS medium0.50
  • IF service IS excellent THEN tip IS high0.00

Pythonic Fuzzy Logic

Clear, expressive fuzzy systems with a clean Python API — no boilerplate, no surprises.

Rust‑Powered Performance

High‑performance inference and rule evaluation implemented in Rust, safely exposed to Python.

Built for Uncertainty

Designed around partial truth, overlapping membership functions, and real‑world ambiguity.

Learn fuzzy logic

Fuzzy logic lets a statement be true to a degree between 0 and 1, rather than only true or false. A fuzzy library turns that idea into systems you can run: variables, rules and an inference engine.