Skip to main content

A library for comparing regression and classification models using scikit-learn.

Project description

ML Automation

ml_automation_algo is a Python library that allows you to compare multiple machine learning models for both regression and classification tasks, using scikit-learn. It evaluates models based on various metrics and selects the best one according to the specified criterion.

Features

  • Compare multiple regression models (Linear Regression, Decision Tree, Random Forest, etc.)
  • Compare multiple classification models (Logistic Regression, SVM, Random Forest, etc.)
  • Select the best model based on metrics like R² Score, Accuracy, Precision, Recall, etc.

Installation

Clone the repository and use the following command to install the dependencies:

pip install -r requirements.txt

Usage

Here’s a basic example:

from ml_model_comparator import a_b_testing_classification, get_best_model, get_model_results
from sklearn.datasets import load_wine

data = load_wine()
X, y = data.data, data.target

models, results = a_b_testing_classification(X, y)
best_model_name = get_best_model(results, metric="Precision")
print(f"The best model based on Precision is: {best_model_name}")
get_model_results(results)

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

ml_algo_automation-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ml_algo_automation-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ml_algo_automation-0.1.3.tar.gz.

File metadata

  • Download URL: ml_algo_automation-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for ml_algo_automation-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dc08a5c7093724c02b7731770374d6d5c23d62c50ef44a3693c750a4841135b6
MD5 47e120a2c789f89427efc6906c4451a1
BLAKE2b-256 d9d35088642dfbac40b01cbb0951fe7be35620d2aa5901bae81e7814ccf41a3f

See more details on using hashes here.

File details

Details for the file ml_algo_automation-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ml_algo_automation-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b32f6b51e61a6461976bc6d39b8349041a5e70a78e9f056a7e8a40fc8ea4cc72
MD5 bad6f01b91c7910c8aed693badb6c1e9
BLAKE2b-256 6a12ec5bb4e40986d1d66a707fa3a95ffbf22021aa35e8613a9561ddc02e0dc0

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