Skip to main content

A simple AutoML library

Project description

MLBuddy

MLBuddy is a simple yet powerful machine learning automation library that helps you quickly build, evaluate, and compare multiple machine learning models with minimal code.

Features

  • Automatic preprocessing of data
  • Support for both classification and regression tasks
  • Built-in model selection with optimized hyperparameters
  • Model performance comparison through a leaderboard
  • Easy evaluation on test data
  • Ensemble models for improved performance

Quick Start

import pandas as pd
from MLBuddy import MLBuddy
from sklearn.model_selection import train_test_split

# Load your dataset
df = pd.read_csv('your_dataset.csv')

# Split into train and test sets
train, test = train_test_split(df, test_size=0.2, random_state=42)

# Initialize MLBuddy with your target column and task type
predictor = MLBuddy(label='target_column', task_type='classification')  # or 'regression'

# Fit models on training data
predictor.fit(train)

# View model performance leaderboard
print(predictor.leaderboard())

# Evaluate the best model on test data
test_performance = predictor.evaluate(test)
print(test_performance)

Supported Models

Classification

  • Logistic Regression
  • Naive Bayes
  • Support Vector Machine (SVM)
  • K-Nearest Neighbors (KNN)
  • Decision Tree
  • Random Forest
  • Gradient Boosting
  • XGBoost
  • LightGBM
  • AdaBoost
  • Ensemble models (stacking and voting)

Regression

  • Linear Regression
  • Ridge Regression
  • Lasso Regression
  • Elastic Net
  • Polynomial Regression
  • Support Vector Regression (SVR)
  • Decision Tree
  • Random Forest
  • Gradient Boosting
  • XGBoost
  • LightGBM
  • Ensemble models (stacking and voting)

Advanced Usage

Custom Preprocessing

MLBuddy automatically handles:

  • Missing value imputation
  • Categorical encoding
  • Feature scaling
  • Feature selection

Performance Metrics Classification

  • Accuracy
  • Precision
  • Recall
  • F1 Score Regression
  • R² Score

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

mlbuddy-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

mlbuddy-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mlbuddy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c74e8a1e59389935626071c473da27c26def1d6fc1986f2f20da15b8e88a968
MD5 a9e50a77ffe16682a6f840924a9a853b
BLAKE2b-256 8704387c5f535781e5e4a0af42867dd90fe94847fd27a8975561c5199f0cea71

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mlbuddy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33ea4c2ac85ddec8fd653526fe4c3874d9b6947949c5ec2f9d273a5919caf931
MD5 84aaf12ccd8113e8577da492681d041f
BLAKE2b-256 4284d6e9ae4b465f5903f8095515af4481d2f29ac347bd3ae3300837262bdb29

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