Skip to main content

Making pdf estimates as seamless as possible

Project description

parzen-windows

Description: A Python module that will take input (training data) and estimate the underlying probability density function with Parzen Windows

To build run python3 -m build while in the parzen_windows directory then navigate to ./dist directory

Then run

twine upload dist/* or twine upload --skip-existing dist/*

Quick Start

from parzenwindow.pdf_estimate import ParzenWindow
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt


# Generate 1,000,000 random values for X
X = np.random.uniform(-10, 10, size=1_000_000)

# Generate Y based on a quadratic function of X, with some added noise
noise = np.random.normal(0, 2, size=1_000_000)
Y = 0.5 * X**2 - 3 * X + 5 + noise

# Create a Pandas DataFrame
df = pd.DataFrame({'X': X, 'Y': Y})


# Instantiate ParzenWindow class
pw = ParzenWindow(training_data_df = df)

#Pick a test point to find pdf of
test_point = df.iloc[0,:].to_numpy()
print(f"Getting the pdf value of {test_point}")
print(pw.pdf(new_datapoint=test_point, hypercube_length = 0.01))

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

parzen_windows-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parzen_windows-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file parzen_windows-0.0.4.tar.gz.

File metadata

  • Download URL: parzen_windows-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for parzen_windows-0.0.4.tar.gz
Algorithm Hash digest
SHA256 403f76611d329fc4b749423491536da4e106c676548cfbc7cb8aee0cd6b99dce
MD5 12cf255858566a7c7aec5a4a2a40c6cc
BLAKE2b-256 5ab45f46a4d573f2ff0dda6f8be7286073afa6a2a7fce28dbdaf75b572d3f3df

See more details on using hashes here.

File details

Details for the file parzen_windows-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: parzen_windows-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for parzen_windows-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f51b275e82ecb62842f752ed971eb7ecb242daf67d02139f8eadf7d27533e983
MD5 ebb4d13c37696faadeb63bc84d3496aa
BLAKE2b-256 2b3904987a3f368ed3bc457adad611468937d5a0b92260d2583a4089748f8aa3

See more details on using hashes here.

Supported by

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