A streamlined pipeline for model selection, data preprocessing, training, and evaluation
Project description
SelectML
SelectML is an all‑in‑one pipeline for model selection, data preprocessing, training, and evaluation tailored for classification tasks. Designed for data scientists, it streamlines the process of choosing the most suitable model without requiring additional imports.
Features
- Data Preprocessing: Automatic scaling and one‑hot encoding.
- Model Selection: Choose between logistic regression, random forest, or SVM.
- Integrated Pipeline: Automatically split data, train models, and evaluate performance.
Installation
Install via pip (after publishing):
pip install selectml
Quick Start
import pandas as pd
from selectml import ModelSelectionPipeline
# Sample dataset
data = {
'age': [25, 32, 47, 51, 23, 45, 36, 29],
'income': [50000, 60000, 80000, 90000, 40000, 75000, 65000, 55000],
'city': ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Phoenix', 'Philadelphia', 'San Antonio', 'San Diego'],
'purchased': [0, 1, 0, 1, 0, 1, 1, 0]
}
df = pd.DataFrame(data)
numerical_features = ['age', 'income']
categorical_features = ['city']
# Initialize pipeline with desired model type
pipeline = ModelSelectionPipeline(model_type='random_forest')
result = pipeline.run_pipeline(df, target='purchased',
numerical_features=numerical_features,
categorical_features=categorical_features)
print("Accuracy:", result['accuracy'])
print("Classification Report:\n", result['report'])
License
This project is licensed under the MIT License.
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 selectml-0.1.1.tar.gz.
File metadata
- Download URL: selectml-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8013580eafdfcc313988a7c7d51ba136433deb7383f4b12f0bd9388b2d335b3
|
|
| MD5 |
6a066b69230f0441c14f5a1810468125
|
|
| BLAKE2b-256 |
c496718b24fa72d894f450b193c5e65f5da0b0d3c56a2bf9339a319a0e2ee0d7
|
File details
Details for the file selectml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: selectml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a785e830c908c3a6c4ad10d22fc5c6fdd71566a0afbb4817c7e72886fa825ef4
|
|
| MD5 |
63897612749e0ed7c53d9bfe8d678097
|
|
| BLAKE2b-256 |
f2ab48410223514a51efb5f90e2c8b2c4ee21e472996c1f1cfd9f6da008a8b36
|