Skip to main content

A fast implementation of the LOESS algorithm in Python

Project description

PyLOESS

This is a vectorized implementation of LOESS that supports polynomial models. It is fast enough for bootstrap resampling for computing prediction intervals.

Installation

pip install pyloess

Usage

from pyloess import loess

# Generate some data
import numpy as np
np.random.seed(0)

x = np.random.uniform(0, 10, 100)
y = np.sin(x) + np.random.normal(0, 0.1, 100)
x_new = np.linspace(0, 10, 1000)

# Evaluate the loess model
y_new = loess(x, y, eval_x=x_new, span=0.33, degree=2)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyloess-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pyloess-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pyloess-0.1.0.tar.gz.

File metadata

  • Download URL: pyloess-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyloess-0.1.0.tar.gz
Algorithm Hash digest
SHA256 344a76ea03930c3acc846efbef274e7c83ce48030f3a6a87975410f3dab3d214
MD5 51ec81033f1111bfcd86532188c1c5e4
BLAKE2b-256 2a6ac967acafd6fb498477148b72c3f9f3c6fb08755cb2ec348a7b0aa1312494

See more details on using hashes here.

File details

Details for the file pyloess-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyloess-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyloess-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4a5378dd07c0d6ce3cfbeb0ee47880d8a48f10821536532d5f7c1f28945fbb
MD5 d29494fc865dcb7f7eda1a1b35734bf3
BLAKE2b-256 723a7fdc35b57324eba4061c12ba29a7e1c1862d3c5fbcec6cd31d7fcaeb7df2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page