Skip to main content

Automated feature engineering in one function, 100% Polars-native

Project description

Installation

pip install polarsmith
# atau dengan uv:
uv add polarsmith

Quick Start

import polars as pl
from polarsmith import forge

df = pl.DataFrame({
    "age": [25, 30, 35, 40],
    "income": [50000, 60000, 70000, 80000],
    "churn": [0, 1, 0, 1]
})

df_out = forge(
    df,
    target="churn",
    strategy="smart",          # auto-detect fitur yang relevan
    config={
        "binning":      {"max_bins": 10},
        "interactions": ["age*income"],
        "encoding":     {"method": "james_stein"},
    }
)

Feature Matrix

Fitur Status
Auto Binning ✅ v0.1
Cyclical Features ✅ v0.1
Interaction Terms ✅ v0.1
James-Stein Enc. ✅ v0.1
WoE Encoding ✅ v0.1
Smart Detection ✅ v0.1
Pandas Compat ✅ v0.1

Performance

Benchmark pada MacBook Air M-series, Python 3.12:

Dataset Size Polarsmith Pandas equivalent Speedup
10,000 rows 0.0xs 0.0xs Xx
100,000 rows 0.0xs 0.0xs Xx
1,000,000 rows 0.0xs 0.0xs Xx

Polarsmith menggunakan Polars 1.x dengan lazy evaluation dan SIMD.

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

polarsmith-1.0.0.tar.gz (101.8 kB view details)

Uploaded Source

Built Distribution

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

polarsmith-1.0.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file polarsmith-1.0.0.tar.gz.

File metadata

  • Download URL: polarsmith-1.0.0.tar.gz
  • Upload date:
  • Size: 101.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polarsmith-1.0.0.tar.gz
Algorithm Hash digest
SHA256 74e10cf67175a4436ad036702a8075569bb3b1f894b130332c82617b494905de
MD5 4eb593b38e91c99601ac030c2e59a99a
BLAKE2b-256 14264191ca1580053887c92924eefebd7ec503c6980675e209785ed765adcc4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for polarsmith-1.0.0.tar.gz:

Publisher: release.yml on alphariz/polarsmith

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polarsmith-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polarsmith-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polarsmith-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2630f0c75d5f7aad9dfd4a3b3623bb1221644affcaa91c11f86581a73773d497
MD5 fc411b102a986f7f72c4715bb5cb47b2
BLAKE2b-256 d661801be44ed4d4fe074212604b03a9ae5d7b18514905854303bbecff07dd76

See more details on using hashes here.

Provenance

The following attestation bundles were made for polarsmith-1.0.0-py3-none-any.whl:

Publisher: release.yml on alphariz/polarsmith

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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