Skip to main content

suffix-smoother

A high-performance, production-ready sequence classifier using recursive suffix smoothing.

Zero neural networks. Zero GPUs. Zero model files. Handles OOV via progressive backoff.


What's New in v0.4.0

  • Industrial Pruning: prune(min_count=k) for massive RAM savings (up to 93% reduction).
  • Auto-Calibration: fit_temperature() minimizes ECE/NLL for reliable confidence scores.
  • Diagnostics: calibration_curve() for binned reliability analysis.
  • Portability: to_json() and from_json() for cross-platform model persistence.

Core Philosophy: Efficient AI

Suffix Smoother is designed for industrial environments where memory, latency, and explainability matter more than parameter count. By utilizing recursive suffix backoff instead of deep learning, it achieves competitive accuracy on sequence tasks with linear training throughput and sub-microsecond inference on standard CPUs.


Documentation & Benchmarks


Install

pip install suffix-smoother

Quick Start (v0.4.0)

from suffix_smoother import SuffixSmoother, SuffixConfig

# 1. Train at Industrial Scale
model = SuffixSmoother(SuffixConfig(n_classes=10))
model.train(data) # list of (seq_tuple, label_int)

# 2. Optimize Reliability (v0.4.0)
model.fit_temperature(val_data)
curve = SuffixSmoother.calibration_curve(test_probs, test_labels)

# 3. Compress for Production (v0.4.0)
# Removes rare nodes (90% reduction on 1M+ samples)
model.prune(min_count=10)

# 4. Save Portably (v0.4.0)
model.to_json("production_model.json")

Performance (Industrial Benchmark)

Dataset Scale Throughput RAM (Pruned)
Synthetic 1.5M samples 100k/sec -89% nodes
Sentiment140 1.6M tweets 85k/sec 4MB (JSON)

License

MIT

Metadata

Release files for suffix-smoother 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suffix-smoother 0.4.0
File Size Uploaded Provenance Actions
suffix_smoother-0.4.0.tar.gz 14.0 kB Without provenance Details for suffix_smoother-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for suffix-smoother 0.4.0
File Interpreter ABI Platform Actions
suffix_smoother-0.4.0-py3-none-any.whl Python 3 none any Details for suffix_smoother-0.4.0-py3-none-any.whl

Total release size: 24.2 kB

Release files / suffix_smoother-0.4.0.tar.gz

Download URL suffix_smoother-0.4.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6dc2430a57c743ddf6f84d86f4ac7da769cc2ec789c1dce7908dafb1b2a6b6f8
BLAKE2b-256 checksum
How to use checksums
fb16d2c34e4015806ce3ff15d22d67cfa780830f8f76848bd9ad22373cbbc39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / suffix_smoother-0.4.0-py3-none-any.whl

Download URL suffix_smoother-0.4.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb1702698ba7bd205b88640cfea4b5b6e038dff8ff989f77df27facf92e05570
BLAKE2b-256 checksum
How to use checksums
872976c3a292ff0004e5a4cd7084026f54a54d9f3a1dd36706fa7a09241c9deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for suffix-smoother 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page