Skip to main content

A library for comparing and evaluating ML models

Project description

Modulus-ML

Modulus-ML is a Python library for comparing and evaluating machine learning models. It simplifies the process of benchmarking multiple models by providing an easy-to-use interface for model comparison, performance evaluation, and summary generation.

Features

  • Add multiple machine learning models for comparison.
  • Evaluate models on classification and regression tasks.
  • Generate detailed summaries of model performance.
  • Select the best model based on evaluation metrics.

Installation

To install Modulus-ML, use pip:

pip install modulus-ml

Usage

Here is a quick example of how to use Modulus-ML:

from modulus_ml import ModelComparator
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.datasets import make_classification

# Create sample data
X, y = make_classification(n_samples=1000, n_features=20, random_state=42)

# Initialize comparator
comparator = ModelComparator()

# Add models
comparator.add_model('logistic', LogisticRegression())
comparator.add_model('random_forest', RandomForestClassifier())

# Run comparison
results = comparator.compare(X, y)

# Print summary
print(comparator.summary())

# Get best model
best_model = comparator.get_best_model()
print(f"Best model: {best_model}")

Requirements

  • Python 3.6+
  • scikit-learn
  • numpy
  • pandas
  • matplotlib

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

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

Acknowledgements

Thanks to the open-source community for providing tools and inspiration for this library.

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

modulus-ml-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file modulus-ml-0.1.0.tar.gz.

File metadata

  • Download URL: modulus-ml-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for modulus-ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e829eff1bb31383b9c9c4a49d89b59f73e985679d7d3a6226023cc8cc8081062
MD5 cb277c12bd0263317219bb4a31ce4243
BLAKE2b-256 0a7b88b3a510d4bc39ad63487e1423c7e3d14614370871b5b36747d4912102ef

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