Skip to main content

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

Project description

ML Automation

ml_automation 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ml_algo_automation-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ml_algo_automation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ebeaada0bcbe033104c4d6e8b914eaae8e1cc461d0d4d0139796e7ac03f3e27
MD5 2230ba941f9acf9c24e73700e071a348
BLAKE2b-256 bddcfa4ddbc6dd1911d7de6f62d336b45b6aa3b97bfa224aa2913e4425fb2069

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