Skip to main content

LOESS Project

PyPI fastloess (Python) CI

One LOESS to Rule Them All
One LOESS to Rule Them All

The fastest, most robust, and most feature-complete language-agnostic LOESS (Locally Estimated Scatterplot Smoothing) implementation for Rust, Python, R, Julia, Node.js, C++, Go, Java, and WebAssembly.

The loess-project also offers bindings for Rust, Python, R, Julia, Node.js, WebAssembly, C++, Go, and Java — see the full repository.


Installation & Documentation

Currently available for R, Python, Rust, Julia, Node.js, WebAssembly, and C++. See the Installation Guide for detailed installation instructions.

📚 View the full documentation


LOESS vs. LOWESS

Feature LOESS (This Crate) LOWESS
Polynomial Degree Linear, Quadratic, Cubic, Quartic Linear (Degree 1)
Dimensions Multivariate (n-D support) Univariate (1-D only)
Flexibility High (Distance metrics) Standard
Complexity Higher (Matrix inversion) Lower (Weighted average/slope)

Read more about how LOESS works in the Concepts.

Note: For a LOWESS implementation, use lowess-project.


Why this package?

Speed

fastLoess beats the competition by being 47.3× faster than R's stats::loess in serial mode and 236.4× faster in parallel compared to R's stats::loess; speedups vary by workload, and parallel execution is not always faster. For datasets of 1,000 points or fewer, serial execution is advised.

For more details on the performance comparison, see the Benchmarks page.

Robustness

This implementation is more robust than R's loess due to two key design choices:

MAD-Based Scale Estimation:

For robustness weight calculations, this crate uses Median Absolute Deviation (MAD) for scale estimation:

s = median(|r_i - median(r)|)

In contrast, R's loess uses the median of absolute residuals (MAR):

s = median(|r_i|)
  • MAD is a breakdown-point-optimal estimator—it remains valid even when up to 50% of data are outliers.
  • The median-centering step removes asymmetric bias from residual distributions.
  • MAD provides consistent outlier detection regardless of whether residuals are centered around zero.

Boundary Padding:

This crate applies a range of different boundary policies at dataset edges:

  • Extend: Repeats edge values to maintain local neighborhood size.
  • Reflect: Mirrors data symmetrically around boundaries.
  • Zero: Pads with zeros (useful for signal processing).
  • NoBoundary: Original Cleveland behavior

R's loess does not apply boundary padding, which can lead to:

  • Biased estimates near boundaries due to asymmetric local neighborhoods.
  • Increased variance at the edges of the smoothed curve.

Features

A variety of features, supporting a range of use cases:

Feature This package R (stats)
Polynomial Degree 5 (0–4) 2 (1 or 2)
Kernel 7 options only Tricube
Robustness Weighting 3 options only Bisquare
Scale Estimation 3 options only MAR
Distance Metric 6 options normalized only
Boundary Padding 4 options no padding
Zero Weight Fallback 3 options no
Auto Convergence yes no
Online Mode yes no
Streaming Mode yes no
Confidence Intervals yes no
Prediction Intervals yes no
Diagnostics (RMSE, R2, AIC) yes no
Cross-Validation 2 options no
Parallel Execution yes no
no-std Support yes no

Validation

All implementations are numerical twins of R's loess:

Aspect Status Details
Accuracy ✅ EXACT MATCH Max diff < 1e-12 across all scenarios
Consistency ✅ PERFECT Multiple scenarios pass with strict tolerance
Robustness ✅ VERIFIED Robust smoothing matches R exactly

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for more information.

License

Licensed under MIT or Apache-2.0.

Citation

If you use this software in your research, please cite it using the CITATION.cff file or the BibTeX entry below:

@software{loess_project,
  author = {Valizadeh, Amir},
  title = {LOESS Project: High-Performance Locally Estimated Scatterplot Smoothing},
  year = {2026},
  url = {https://github.com/thisisamirv/loess-project},
  license = {MIT OR Apache-2.0}
}

Metadata

Release files for fastloess 3.1.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 fastloess 3.1.0
File Size Uploaded Provenance Actions
fastloess-3.1.0.tar.gz 1.0 MB With provenance Details for fastloess-3.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastloess 3.1.0
File Actions
fastloess-3.1.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for fastloess-3.1.0-cp39-abi3-win_arm64.whl
fastloess-3.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for fastloess-3.1.0-cp39-abi3-win_amd64.whl
fastloess-3.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for fastloess-3.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
fastloess-3.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for fastloess-3.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
fastloess-3.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for fastloess-3.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fastloess-3.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for fastloess-3.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
fastloess-3.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for fastloess-3.1.0-cp39-abi3-macosx_11_0_arm64.whl
fastloess-3.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for fastloess-3.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 6.8 MB

Release files / fastloess-3.1.0.tar.gz

Download URL fastloess-3.1.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
e2bc3dc7755bda724c3fdc816db753fa83823a44a76bb1c0082c7f083adb10b7
BLAKE2b-256 checksum
How to use checksums
c89290d77eee505229ca5d58109569dc26472b3c6f7569cd4c12731ae5ca403b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-win_arm64.whl

Download URL fastloess-3.1.0-cp39-abi3-win_arm64.whl
Size 558.7 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
a269cecb32beb3331cee42f98d4d591ddba880b4004e0b58df461756e5a09102
BLAKE2b-256 checksum
How to use checksums
c4526110b46d9dfa33493124ecf722037b6c1bb5ad15d148dd48695d95ebc291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-win_amd64.whl

Download URL fastloess-3.1.0-cp39-abi3-win_amd64.whl
Size 605.5 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7ca8f0495e4637435fae7f459c3b4cc5b8070a1a5fa9ba5d783e563ce313d14f
BLAKE2b-256 checksum
How to use checksums
da956915053d172bffc0596b2df16a82ce307308c5816d16c83ec14908cac8a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL fastloess-3.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 938.2 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
16b8c847e7182c1eb59c9c99c4bb9116ab17c69c5a543c7f43aa2a92c2af705b
BLAKE2b-256 checksum
How to use checksums
d53c6e9aeafb51c0d340cf9c6f1dbb99b812414df0aeae51b5772332fafddd13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL fastloess-3.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 871.1 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
02a8a2aa76b7b8067d83829dd5ed04e313e9082df6906be52b95bd1f2ac6a9b4
BLAKE2b-256 checksum
How to use checksums
e97478488afad99051a15e20197e2c9c37e749dc98c47954141debc9829612a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fastloess-3.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 727.4 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0234b017ed3987dd112a5ffcc9228a0185008619e9825c86403536d9762b20ba
BLAKE2b-256 checksum
How to use checksums
a958b340a1f81592d0b38748f58a3dbd7bc7d95e3811aa4bcc3a58655504c1e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL fastloess-3.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 692.5 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
2f360e5820103c1979f41842929c452f84a37de4bca7a3c29e429521dcc9073a
BLAKE2b-256 checksum
How to use checksums
b76cc726f7528ae72cceb615b43c26780d51ddabae2167fcf8d9efe2a050098d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL fastloess-3.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 646.0 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13134aeb21e45b86698ffa2bf5e0d74ae45b854110f5ede430b98a584005f887
BLAKE2b-256 checksum
How to use checksums
4a19e0bd15b7053d5b33cdda27f8bd0eb94796d0c2f223c6e0e88f4973984b3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / fastloess-3.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL fastloess-3.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 681.2 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
dac569b4ad1afbfa0b8394cc35b0cebc23c41f8937b8c3fc076d6b48b8bbc9b3
BLAKE2b-256 checksum
How to use checksums
56c859b38ce61ededb91b76b683ef036cdb0552155d91c308d7c9ee19b31df44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for fastloess 3.1.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.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for fastloess-3.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

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