Observed since 20 Oct, 21:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A high-performance C++ Machine Learning backend for AffineFlow
A high-performance Machine Learning engine for the AffineFlow ecosystem.
Designed for rapid experimentation without the Python Global Interpreter Lock (GIL) overhead, AffineFlow-ML executes compute-intensive tasks strictly in native C++ using Eigen and OpenBLAS. It features a dynamically compiled multi-architecture backend (Generic, AVX2, AVX-512) for maximum hardware-accelerated throughput safely dispatched at runtime.
Eigen::Ref and RowMajor structures to natively ingest NumPy arrays without memory duplication.std::nth_element).uniform voting or distance-weighted predictions.Install the released wheel from PyPI:
pip install AffineFlow-ML
import numpy as np
import affineflow_ml as ml
# Example data
X_train = np.random.rand(1000, 50).astype(np.float64)
y_train = ["class_A" if x[0] > 0.5 else "class_B" for x in X_train]
# Configure the engine with new features
cfg = ml.KNNConfig()
cfg.k = 5
cfg.variance = 0.95
cfg.metric = ml.DistanceMetric.COSINE
cfg.weights = ml.Weights.DISTANCE
engine = ml.KNNEngine(cfg)
engine.train(X_train, y_train, scale=True)
X_test = np.random.rand(10, 50).astype(np.float64)
predictions = engine.predict_batch(X_test)
print(predictions)
AffineFlow-ML achieves strict mathematical parity with Scikit-Learn while delivering up to 5.4x faster inference and transformation pipelines on high-dimensional datasets. Powered by a multithreaded C++17 Eigen backend with dynamic hardware dispatch (AVX2/AVX-512) and OpenMP parallelism, it eliminates Python loop and GIL bottlenecks.
| Dataset | Metric & Weights | Scikit-Learn Time | AffineFlow-ML Time | Speedup | Accuracy |
|---|---|---|---|---|---|
| Olivetti Faces (400 samples, 4096 dims $\rightarrow$ PCA 90%) | Cosine / Distance | 0.4134s | 0.0760s | 5.44x | 90.00% |
| Handwritten Digits (1797 samples, 64 dims $\rightarrow$ PCA 95%) | Manhattan / Uniform | 0.0808s | 0.0354s | 2.29x | 98.61% |
| Iris Flower (150 samples, 4 dims $\rightarrow$ PCA 99%) | Euclidean / Uniform | 0.0105s | 0.0055s | 1.91x | 100.00% |
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 5 Aug 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1b1bd0b4b96a3884722df00d40966d6f94bb8da9306dbaa7041a0fb35ac3ebff