Composable sklearn-compatible pipeline builder for feature engineering, validation, resampling, and monitoring.
Project description
skpipeline-forge
skpipeline-forge is a composable, sklearn-compatible pipeline builder for tabular ML workflows.
It helps you define reusable transformation stacks as objects, then apply them consistently across:
- training
- scoring
- optional imbalance handling
- monitoring/reporting hooks
Install
pip install skpipeline-forge
Quickstart
from pipeline_forge import FeaturePipelineBuilder
builder = FeaturePipelineBuilder(target_col="target", random_seed=42)
(
builder
.validate_schema(required_cols=["city", "hour", "age", "balance"], strict=False)
.group_rare_categories(categorical_cols=["city"], min_freq=0.02)
.target_encode(categorical_cols=["city"], drop_original=True)
.encode_cyclical_time(period_map={"hour": 24})
.add_interaction_features(numeric_cols=["age", "balance"])
.scaler("robust")
.random_oversampling(sampling_strategy=1.0)
)
builder.build_pipeline()
What You Get
- Fluent API for chaining transformations
- sklearn/imblearn-compatible pipelines
- Feature engineering + resampling in one object
- Extra pipeline layers for validation, selection, postprocessing, monitoring, explainability
- Built-in common transformers for tabular data
Documentation
Package Notes
- Python:
>=3.10,<4.0 - Main runtime deps:
scikit-learn,imbalanced-learn,pandas,numpy,mlflow,prophet - Tests:
pytest
Development
poetry install --with dev
poetry run pytest -q
poetry build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skpipeline_forge-1.0.1.tar.gz.
File metadata
- Download URL: skpipeline_forge-1.0.1.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0bdd7b7828301a27271293c96755e651e35dce3d70944d0034abaaa6dee142c
|
|
| MD5 |
afe49403a7798d6260bbbb55fe9872c3
|
|
| BLAKE2b-256 |
73602f5d9c4bdeda1b8507074df69c128dace1f39ae00885d916afc1a6fc8d3f
|
File details
Details for the file skpipeline_forge-1.0.1-py3-none-any.whl.
File metadata
- Download URL: skpipeline_forge-1.0.1-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2ee8a41ec64ab0bef75e64c8ed892153fa8c45afe157b2774c56b80429e689
|
|
| MD5 |
c553837e504916493946190573071be5
|
|
| BLAKE2b-256 |
7e1cfa4ba7ce0837bfec7162ffaf3a821bf1d4596f3b6b403b4c3615cc7d5655
|