Skip to main content

Enhanced Automatic Shifted Log Transformer with Monte Carlo optimization

Project description

Enhanced Automatic Shifted Log Transformer (EASLT)

Automatically transform skewed data into more normal distributions using a Monte Carlo–optimized shifted log transformation.


🚀 Features

  • Works with negative, zero, and positive values
  • Reduces skewness and kurtosis
  • Adaptive, data-driven transformation
  • Multi-test normality assessment
  • Scikit-learn compatible
  • Numba-accelerated for speed

📦 Installation

pip install EASLT

⚡ Quick Start

from EASLT import AutomaticShiftedLogTransformer
import numpy as np

# Example skewed data
np.random.seed(42)
data = np.random.exponential(2, (1000, 3))

# Transform
transformer = AutomaticShiftedLogTransformer(mc_iterations=1000, random_state=42)
data_transformed = transformer.fit_transform(data)

📚 How It Works

EASLT:

  1. Detects data complexity (normal, mild issues, needs transformation)
  2. Applies robust shifting for negative/zero values
  3. Detects outliers and optionally winsorizes
  4. Optimizes parameters via Monte Carlo with Dirichlet sampling
  5. Applies Feng's shifted log transformation

📝 License

MIT License © 2025 Muhammad Akmal Husain

🔗 Links

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

easlt-0.0.5.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

easlt-0.0.5-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file easlt-0.0.5.tar.gz.

File metadata

  • Download URL: easlt-0.0.5.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for easlt-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9ae941d360300602b355435d1c87a71618df012a550c3b970a77f5f36529e37c
MD5 7c5adf7c312a6749e3e70fe140f60c3f
BLAKE2b-256 2642efff88fe45afb4f12181884db7310956c9a69232ec0a366c18ab002886a4

See more details on using hashes here.

File details

Details for the file easlt-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: easlt-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for easlt-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 98be8c3ed9048a2aad8cbb4207b21fa85aa9b254dd7ddaf6f4da970dec27b512
MD5 58df7ac9ef52854ec0e2c3f1f03e21b5
BLAKE2b-256 350285f2cbf60aa520f2d08f916934809a0018aa990e77960cb11bc828dad907

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