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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ml_algo_automation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ml_algo_automation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ebeaada0bcbe033104c4d6e8b914eaae8e1cc461d0d4d0139796e7ac03f3e27
|
|
| MD5 |
2230ba941f9acf9c24e73700e071a348
|
|
| BLAKE2b-256 |
bddcfa4ddbc6dd1911d7de6f62d336b45b6aa3b97bfa224aa2913e4425fb2069
|