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.2.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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: automlbench-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a5bc83ca4baef907afc9b56f629bc2927821ff1f0c8273ecd69f23e075819827
MD5 59a365d9855c45dea899cd0a14d28333
BLAKE2b-256 adbf9d1ea76f9df6b79a612bd9513117967ff33d469e25a5fe1d809de35da04c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: automlbench-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f717616975d8afb83b26fade91b8fab221db3888ae759d65b042ed0476a89b
MD5 9ec7f2fc7046ad742b30addee48d026b
BLAKE2b-256 a67974ed9c92431b558d0b649e6d79782f800252a20dabce8f3b1ebb05f9d37f

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