Skip to main content

A Python package for automated ML model benchmarking and comparison

Project description

AutoMLBench- Automated ML Model Benchmarking Library

Automlbench is a Python library for automated machine learning model benchmarking. It simplifies the process of comparing multiple machine learning models by providing utilities for data loading, preprocessing, model selection, hyperparameter tuning, evaluation, and visualization. The library is designed to streamline model experimentation and performance analysis, making it ideal for data scientists and machine learning practitioners.

🚀 Features

Automated model benchmarking – Compare multiple models with minimal effort.
Flexible preprocessing – Choose between automatic or manual feature engineering.
Performance visualization – Generate insightful plots for model comparison.
Customizable feature handling – Supports missing value imputation, scaling, and encoding.
Multi-model training – Supports Random Forest, Gradient Boosting, XGBoost, LightGBM, CatBoost, and more.

Installation

pip install automlbench

Importing Automlbench

from automlbench import (
    load_data, preprocess_data, get_models, get_hyperparameter_grids,
    evaluate_model, plot_performance, tune_hyperparameters, 
    time_execution, log_message, suppress_warnings
)

Features

1. Load Data

df = load_data("dataset.csv")

2. Preprocess Data

X_train, X_test, y_train, y_test = preprocess_data(df, target_column="target")

3. Get Available Models

models = get_models()

4. Hyperparameter Grids

param_grids = get_hyperparameter_grids()

5. Evaluate Models

results = {name: evaluate_model(model, X_test, y_test) for name, model in trained_models.items()}

6. Hyperparameter Tuning

best_models = tune_hyperparameters(models, X_train, y_train, param_grids)

7. Plot Performance

plot_performance(results)

8. Suppress Warnings (Optional)

suppress_warnings(True)  # Set to False if you want to see warnings

Utilities

  • time_execution(func): Measure execution time of a function.
  • log_message(msg): Log messages for debugging.

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

automlbench-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

automlbench-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file automlbench-0.1.1.tar.gz.

File metadata

  • Download URL: automlbench-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.7

File hashes

Hashes for automlbench-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce964b37d8a2932ba800afb603af491382f2d28ea2514c55b809f245e8373824
MD5 3b72db36f87ffa27327a52bc2672a0a1
BLAKE2b-256 e1641c986713b9974c7531617a0154b5fe171f60341372ad18c32c5844333c78

See more details on using hashes here.

File details

Details for the file automlbench-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: automlbench-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.7

File hashes

Hashes for automlbench-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d9ec0a4f3ff2db7d8f31a61ce87f82b5eeea1590f33a5e7e8d119009b2ef1a
MD5 13fc91daccec13802fba6b550acad837
BLAKE2b-256 4da375f7c3d02867a24b258c9261c6b5ae3b8ad2be3ceebcdefe5a92faead873

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