DBDelve
Dive deep into your data. A fast, native, multi-engine database client written in Rust. Free and open source, no telemetry.
翻译准备中
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Ex-Fuzzy is a comprehensive Python library for explainable artificial intelligence through fuzzy logic programming. Built with a focus on accessibility and visualization, it enables researchers and practitioners to create interpretable machine learning models using fuzzy association rules.
New: Try Ex-Fuzzy labs! Our new plug and play web interface where you can quickly test how Ex-Fuzzy would work in your data: ExFuzzy Labs
See it on real data: ExFuzzy Atlas shows Ex-Fuzzy models on public air quality, river water and taxi demand data: read each rule and see where on the map it decides (source).
algorithm='nsga2') and keeps the Pareto front to choose from. Hyperparameters like tournament size and crossover rate can be tuned.Install Ex-Fuzzy using pip:
# Basic installation (CPU only, PyMoo backend)
pip install ex-fuzzy
# With GPU support (EvoX backend with PyTorch)
pip install "ex-fuzzy[evox]"
from ex_fuzzy import BaseFuzzyRulesClassifier
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
# Load data
X, y = load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)
# Create and train fuzzy classifier
classifier = BaseFuzzyRulesClassifier(
nRules=15,
nAnts=4,
backend="pymoo" # or "evox" for GPU acceleration
)
# Train the model
classifier.fit(X_train, y_train)
# Make predictions
predictions = classifier.predict(X_test)
# Evaluate and visualize fuzzy partitions
from ex_fuzzy.eval_tools import eval_fuzzy_model
eval_fuzzy_model(classifier, X_train, y_train, X_test, y_test,
plot_partitions=True)
FERL learns a fuzzy rule tree and derives Dempster--Shafer evidence directly
from rule firing strengths. It is implemented natively in Ex-Fuzzy and needs no
separate fuzzy-tree package.
from ex_fuzzy import FERL
ferl = FERL(max_rules=15, random_state=0)
ferl.fit(X_train, y_train)
predictions = ferl.predict(X_test)
betp, belief, plausibility, ignorance = ferl.predict_credal(X_test)
prediction_sets = ferl.predict_set(X_test)
ferl.print_tree()
Use split_mode="learned" for data-driven soft split locations or
partition="mdlp" for supervised trapezoidal partitions. Native FERL sets are
calibration-free evidential outputs; use ConformalFuzzyClassifier when a
finite-sample marginal coverage guarantee is required.
For higher accuracy with the same evidential outputs, DeepFERL grows a deep
tree of learned, Gini-placed soft splits and votes over its leaves.
BaseFuzzyRulesRegressor learns interpretable Type-1 rules for continuous
targets. It supports crisp Takagi-Sugeno consequents and fuzzy Mamdani
consequents.
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗