Skip to main content

README

OutBoxML is an open-source framework designed to improve the process of automating machine learning pipelines from model training to deployment. This toolkit integrates several key components including Python for model development, Grafana for monitoring, FastAPI for serving models, and MLFlow for experiment tracking and management. Our aim is to provide a robust and user-friendly platform for ML practitioners to efficiently build, deploy, and monitor their ML solutions with ease.

The key components include:

  • AutoML: Use AutoML algorithm with boosting or implement your custom models using low-code solution
  • MLFlow: Track experiments, parameters, and outputs with MLFlow .
  • Grafana Monitoring: Utilize Grafana dashboards to monitor ML models performance in real-time
  • FastAPI: Host the models with FastAPI that allows for quick deployment and testing of ML models via RESTful APIs.
  • PostgreSQL: Use open source database to store and update data for AutoML proceses

The main connections between components are made with Docker, the framework requires OS with Docker и Docker Compose installed.

Communications between the containers

All containers use one Docker network, by default (<project>_default):

  • MLflow Communicates with PostgreSQL using postgre.
  • Prometheus collect metrics from node-exporter.
  • FastAPI Sends metrics to MLflow with REST API.

Ports

By default containers map to the following ports:

  • MLflow: 5000:5000
  • Grafana: 3000:3000
  • Prometheus: 9090:9090
  • Node Exporter: 9100:9100
  • Jupyter Notebook: 8889:8888
  • FastAPI: 8000:8000
  • Minio: 9001:9001

Getting Started

  • Change the directory to outboxml/app
  • Run the create-folder.bat(on Windows) or create-folder.sh(on Linux) before starting any other actions.
  1. To start the project change the directory to outboxml/app
    docker compose up
    
    or for backround lunch
    docker compose up -d
    
  • To restart:
    docker compose down && docker compose up --build
    
  • To stop the project:
    docker compose down
    
  1. Check availablity

  2. Ensure that all containters are up

    docker ps
    
  3. For testing of FastAPI use Swagger docs: http://localhost:8000/docs.

  4. Minio setup

  • Open http://localhost:9001 (login: minio, password: Strong#Pass#2022)
  • Click "Create Bucket" with name "mlflow"
  • Open the bucket and edit "Access Policy:"
  • Set Access Policy to Public and click set

Network restrictions and security concerts

  • The containers are isolated
  • Use firewall on the host machine for extra security
  1. Jupyter Notebook
    • By default open without password or token
  2. Prometheus и Grafana
    • Manually connect Prometheus to Grafana.

Possible issues and solutions

  1. The ports are in use:

    • Find and free the neccesary ports:
      sudo lsof -i:<порт>
      
    • Alternatively change the ports in docker-compose.yml.
  2. No connection between containers:

    • Check names of Docker network:
      docker network inspect <project>_default
      
  3. No connections between FastAPI and MLflow:

    • Check connections MLflow API:
      curl http://mlflow:5000/api/2.0/mlflow/experiments/list
      
  4. Instructions if packages won't install via pip install

1. Log in as a user with sudo privileges.
2. Open the file /etc/default/docker:
    $ sudo nano /etc/default/docker
3. Find and uncomment or add the following line:
    DOCKER_OPTS="--dns 8.8.8.8"
4. Save and close the file.
5. Restart the Docker daemon service:
    $ sudo systemctl restart docker

Configuration

The environment config (paths, MLflow, database, e-mail) comes from environment variables or a .env file (dotenv format) read by outboxml/config.py. The Jupyter examples pass a Python config module instead, e.g. examples/titanic/external_config_for_titanic_example.py. See docs/sphinx/configuration.rst for the list of settings and the JSON configs of models, AutoML and monitoring.

Contributing

We welcome contributions from the community! If you'd like to contribute, please follow the contributing guidelines outlined in docs/CONTRIBUTING.md.

License

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

Support

For support, please open an issue on GitHub or contact the maintainers directly.

Acknowledgements

We would like to thank VSK, whose support has been pivotal to the success of the project. Special thanks to Vladimir Nikulin, who not only supervised the business aspects of the project but also provided invaluable insights and guidance on its integration with business workflows. We appreciate the support of our Data Science department for integrating the framework into ML processes, and extend special thanks to the MLOps team, especially Aleksey Makeev and Dmitry Zotov, or their contributions to testing and DevOps integration.

Current contributors

  • Semyon Semyonov - Original codebase development, system design and product management
  • Vladimir Suvorov - Core code development and software architecture
  • Dmitry Bochkarev - Code development and data science model implementation
  • Maxim Matcera - Development of specific modules

Metadata

Release files for outboxml 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outboxml 1.0.1
File Size Uploaded Provenance Actions
outboxml-1.0.1.tar.gz 254.6 kB Without provenance Details for outboxml-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for outboxml 1.0.1
File Interpreter ABI Platform Actions
outboxml-1.0.1-py3-none-any.whl Python 3 none any Details for outboxml-1.0.1-py3-none-any.whl

Total release size: 410.8 kB

Release files / outboxml-1.0.1.tar.gz

Download URL outboxml-1.0.1.tar.gz
Size 254.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fb9d34034ec7ef1c8473e9e1f8ad689764713da5b5527d05b77fb617685d5010
BLAKE2b-256 checksum
How to use checksums
f46fd69fa1d17c120d3b5a8875b8f3b4aa70374e876948e38e95685305a5eccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / outboxml-1.0.1-py3-none-any.whl

Download URL outboxml-1.0.1-py3-none-any.whl
Size 156.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f19dd37f7f210307a33709fc820cbd1e9dd060bf47c31999afc2d805d2a9e12d
BLAKE2b-256 checksum
How to use checksums
cb20e99d2bc8e01886dc5db7e0bfd700d14511b309e43830858fcbfdbf3f12e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for outboxml 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page