Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selectml-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

selectml-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file selectml-0.1.0.tar.gz.

File metadata

  • Download URL: selectml-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for selectml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a6a33471af83c1087da9521dc1c8f18ec20764dda7920eba8d0150cee55a2202
MD5 fde2d3ac8a2963b68d719fa869ce0aee
BLAKE2b-256 3ba62684bf0008be3d65cc26ac76b4e2abd40395fb8c63845aac6b11f6c1d148

See more details on using hashes here.

File details

Details for the file selectml-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: selectml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for selectml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afd2d450dd3f773da2ea2a9c05d81df8717aa181e4645f6a40362a6be63b8e16
MD5 cb5f0cb1fa27c359e47e1f09a0e3c3a7
BLAKE2b-256 2b48a5737f8977e2446a818c265c6cac8eb020b0b7da7f6612c74d0b172b8cd6

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