A simple ML pipeline package with ETL steps using scikit-learn
Project description
README.md
ML ETL Package
A lightweight Python package for running a simple Machine Learning ETL pipeline using Scikit-learn.
Features
- 📥 Extract: Load data from CSV files
- 🔧 Transform: Clean and scale data with
StandardScaler - 📤 Load: Save transformed data to CSV
- 🤖 Model: Train and save a Linear Regression model
- 🔮 Predict: Make predictions from scaled inputs
Installation
pip install ml-etl-package
Usage Example
from ml_etl_package.extract import extract_from_csv
from ml_etl_package.transform import transform
from ml_etl_package.load import save_to_csv
from ml_etl_package.model import train_and_save_model, load_model
from ml_etl_package.predict import predict
# Extract
df = extract_from_csv("data.csv")
# Transform
X, y, scaler = transform(df, feature_cols=["sqft", "bedrooms", "bathrooms"], target_col="price")
# Load (save transformed data)
save_to_csv(X, y, filename="transformed_output.csv")
# Train
train_and_save_model(X, y)
model = load_model()
# Predict
input_data = [1200, 3, 2] # sqft, bedrooms, bathrooms
result = predict(model, scaler, input_data)
print(f"Predicted price: {result:.2f}")
License
MIT
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
ml_etl_package-0.1.0.tar.gz
(2.5 kB
view details)
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 ml_etl_package-0.1.0.tar.gz.
File metadata
- Download URL: ml_etl_package-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46472467c3d87bc6e8f5b456fac25b0a19d963e1bfe8528633da32fc35b23b73
|
|
| MD5 |
1f06ade06f950a8dbe54eb45c25ba504
|
|
| BLAKE2b-256 |
75a6622f599765fc1b39f7c650bb7926c01dc5a7f612114d2c15886bafd10055
|
File details
Details for the file ml_etl_package-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ml_etl_package-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e997a29a8d4877ef3ee0becad29b724bdb147ae54b8cca342388a209d0e3dc
|
|
| MD5 |
7808b70836abf5e1f2caa2d50dd6fb86
|
|
| BLAKE2b-256 |
65c5e40e8b9841e620247f3a60f1df1193a9162c7dcf8672224de1902bdb47e4
|