A comprehensive MLOps library for end-to-end machine learning workflows
Project description
๐ AdamOps
AdamOps is a comprehensive MLOps library for end-to-end machine learning workflows. It provides a unified interface for data processing, model training, evaluation, deployment, and monitoring.
โจ Features
๐ Data Module (DataOps)
- Loaders: CSV, Excel, JSON, SQL, API, compressed files with auto-encoding detection
- Validators: Type validation, missing values, duplicates, shape, statistical checks
- Preprocessors: Missing value imputation, outlier handling, text cleaning
- Feature Engineering: Encoding, scaling, feature selection, auto feature generation
- Splitters: Train/test, time-series, K-Fold, stratified splitting
๐ค Model Module (ModelOps)
- Regression: Ridge, Lasso, ElasticNet, XGBoost, LightGBM
- Classification: Decision Tree, Gradient Boosting, XGBoost, LightGBM, Naive Bayes, KNN
- Clustering: K-Means, DBSCAN, Hierarchical, GMM
- Ensembles: Voting, Stacking, Blending, Weighted averaging
- AutoML: Model selection, hyperparameter tuning (Grid, Random, Bayesian)
๐ Evaluation Module
- Metrics: Classification, regression, and clustering metrics
- Visualization: Confusion matrices, ROC curves, feature importance plots
- Explainability: SHAP and LIME explanations
- Reports: HTML/PDF report generation
๐ Deployment Module
- Exporters: ONNX, PMML, TFLite, CoreML
- APIs: FastAPI, Flask, Streamlit
- Containerization: Docker, Kubernetes
- Cloud: AWS, GCP, Azure
๐ก Monitoring Module
- Drift Detection: Data and concept drift
- Performance Tracking: Model metrics over time
- Alerts: Performance degradation notifications
- Dashboards: Real-time monitoring dashboards
๐ Pipelines Module
- Workflows: End-to-end ML workflows as DAGs
- Orchestration: Scheduling and pipeline execution
๐ ๏ธ Installation
Basic Installation
pip install adamops
Development Installation
git clone https://github.com/adamops/adamops.git
cd adamops
pip install -e ".[dev]"
Full Installation (all extras)
pip install adamops[all]
๐ Quick Start
Data Loading
from adamops.data import loaders
# Load CSV with auto-encoding detection
df = loaders.load_csv("data.csv")
# Load from SQL database
df = loaders.load_sql("SELECT * FROM table", "sqlite:///database.db")
Data Validation
from adamops.data import validators
# Create validation report
report = validators.validate(df)
print(report.summary())
Data Preprocessing
from adamops.data import preprocessors
# Handle missing values
df = preprocessors.handle_missing(df, strategy="knn")
# Handle outliers
df = preprocessors.handle_outliers(df, method="iqr")
Feature Engineering
from adamops.data import feature_engineering
# Encode categorical variables
df = feature_engineering.encode(df, method="onehot", columns=["category"])
# Scale numerical features
df = feature_engineering.scale(df, method="standard", columns=["value"])
Model Training
from adamops.models import modelops
# Train a model
model = modelops.train(
X_train, y_train,
task="classification",
algorithm="xgboost"
)
# Predict
predictions = model.predict(X_test)
AutoML
from adamops.models import automl
# Run AutoML
best_model = automl.run(
X_train, y_train,
task="classification",
tuning="bayesian",
time_limit=3600
)
Evaluation
from adamops.evaluation import metrics
# Compute metrics
results = metrics.evaluate(y_true, y_pred, task="classification")
print(results)
CLI Usage
# Train a model
adamops train --data data.csv --target y --algorithm xgboost
# Evaluate a model
adamops evaluate --model model.pkl --data test.csv
# Deploy as API
adamops deploy --model model.pkl --type api --port 8000
๐ Project Structure
adamops/
โโโ adamops/
โ โโโ __init__.py
โ โโโ cli.py
โ โโโ data/
โ โ โโโ loaders.py
โ โ โโโ validators.py
โ โ โโโ preprocessors.py
โ โ โโโ feature_engineering.py
โ โ โโโ splitters.py
โ โโโ models/
โ โ โโโ modelops.py
โ โ โโโ registry.py
โ โ โโโ ensembles.py
โ โ โโโ automl.py
โ โโโ evaluation/
โ โ โโโ metrics.py
โ โ โโโ visualization.py
โ โ โโโ explainability.py
โ โ โโโ comparison.py
โ โ โโโ reports.py
โ โโโ deployment/
โ โ โโโ exporters.py
โ โ โโโ api.py
โ โ โโโ containerize.py
โ โ โโโ cloud.py
โ โโโ monitoring/
โ โ โโโ drift.py
โ โ โโโ performance.py
โ โ โโโ alerts.py
โ โ โโโ dashboard.py
โ โโโ pipelines/
โ โ โโโ workflows.py
โ โ โโโ orchestrators.py
โ โโโ utils/
โ โโโ config.py
โ โโโ logging.py
โ โโโ helpers.py
โโโ tests/
โโโ examples/
โโโ docs/
โโโ setup.py
โโโ requirements.txt
โโโ README.md
๐ Documentation
Full documentation is available at https://adamops.readthedocs.io
๐ค Contributing
Contributions are welcome! Please see our Contributing Guide for details.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- scikit-learn team for their excellent ML library
- XGBoost and LightGBM teams for gradient boosting implementations
- SHAP and LIME teams for explainability tools
- The entire open-source ML community
Made with โค๏ธ by the AdamOps Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 adamops-0.1.1.tar.gz.
File metadata
- Download URL: adamops-0.1.1.tar.gz
- Upload date:
- Size: 95.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81ea1c6cf683e2f0c9a2206125c329cc2a5266babfacc4e1a760ee277e01610d
|
|
| MD5 |
9f2ecb7de35418da7bfb9d3459430ea8
|
|
| BLAKE2b-256 |
4c4c2eacf41e0a7ff0d14b8215ddbdc27dd7d9c19fcad5ab4c816e92c303362e
|
File details
Details for the file adamops-0.1.1-py3-none-any.whl.
File metadata
- Download URL: adamops-0.1.1-py3-none-any.whl
- Upload date:
- Size: 107.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ccae277339fbece813f8cf700de44a093328b3ab748e66627c9d0c36a54e35
|
|
| MD5 |
3af257279882596c053421796767ab70
|
|
| BLAKE2b-256 |
503d51c2af26820e4372b6e6d0644fc7717940f05ffe1bea3f5e48ac73083403
|