qoa4ml


Nameqoa4ml JSON
Version 0.3.7 PyPI version JSON
download
home_pageNone
SummaryQuality of Analysis for Machine Learning
upload_time2024-09-25 08:13:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseApache-2.0
keywords machine learning monitoring
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # QoA4ML - Quality of Analytics for Machine Learning Services

---

[![Documentation](https://img.shields.io/badge/Documentation-gray?logo=materialformkdocs)](https://rdsea.github.io/QoA4ML/)
![PyPI - Status](https://img.shields.io/pypi/status/qoa4ml)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/qoa4ml)
![PyPI - Version](https://img.shields.io/pypi/v/qoa4ml)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/qoa4ml)
![PyPI - Downloads](https://img.shields.io/pypi/dm/qoa4ml)
[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/format.json)](https://github.com/astral-sh/ruff)
[![GitTutorial](https://img.shields.io/badge/PR-Welcome-%23FF8300.svg?)](https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project)
[![Python CI](https://github.com/rdsea/QoA4ML/actions/workflows/python-ci.yml/badge.svg)](https://github.com/rdsea/QoA4ML/actions/workflows/python-ci.yml)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# Introduction

QoA4ML consists of a set of utilities and specs for supporting quality of analytics in ML services. Especially, we focus on ML services across edge-cloud continuum, which are built as a composition of services.

## QoA4ML Specification

The design of QoA4ML specification is in [language](language/)

## QoA4ML Utilities

Developers can call many functions from a QoAClient and QoA4ML's [utilities](qoa4ml_lib/utils.py) to evaluate/report ML-specific attributes (e.g., data quality, inference performance), build the quality reports, and send them to the observation services.
The QoAClient can be initiated with various configurations for specifying observation server and communication protocols (e.g., messaging) in different formats (e.g., json and yaml).

The detail documents for QoA4ML utilization is presented in [qoa4ml_lib](qoa4ml_lib/)

> For a local build and use QoA4ML one can do:

```bash
$python3 -m pip install build
$cd qoa4ml_lib/
$python -m build
```

## QoA4ML Reports

QoA Reports are implemented in [QoA4ML Utilities](qoa4ml_lib/qoa4ml/), an object supports developers in reporting metrics, computation graphs, and inference graphs of ML services in a concrete format.
![Report schema](img/inf_report.png)

## Examples

Examples are in [examples](example/).

## QoA4ML Observability

The code is in [observability](observability/)

![The overall architecture of the Observability Service](img/qoa4mlos-overview.png)

QoA4ML Monitor is a component monitoring QoA for a ML model which is deployed in a serving platform.

- Monitoring Service: third party monitoring service used for managing monitoring data.
  - We use Prometheus and other services: provide information on how to configure them.
- QoA4MLObservabilityService: a service reads QoA4ML specifications and real time monitoring data and detect if any violation occurs

### Implementation using OPA

[OPA engine](https://www.openpolicyagent.org/docs/latest/#running-opa) is used to implement the service for checking violation under [qoa4mlopa](observability/qoa4mlopa/)

### ROHE Implementation

Another new engine is currently developed under [rohe_ObService](observability/rohe_ObService/)

## References

- Hong-Linh Truong, Minh-Tri Nguyen, ["QoA4ML -A Framework for Supporting Contracts in Machine Learning Services"](https://research.aalto.fi/files/65786264/main.pdf), [The 2021 IEEE International Conference on Web Services (ICWS 2021)](https://conferences.computer.org/icws/2021/), to appear.
- Minh-Tri Nguyen, Hong-Linh Truong [Demonstration Paper: Monitoring Machine Learning Contracts with QoA4ML](https://research.aalto.fi/files/56621517/main.pdf), Companion of the 2021 ACM/SPEC International Conference on Performance Engineering (ICPE'21), Apr. 19-23, 2021
- https://www.researchgate.net/publication/341762862_R3E_-An_Approach_to_Robustness_Reliability_Resilience_and_Elasticity_Engineering_for_End-to-End_Machine_Learning_Systems

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "qoa4ml",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Machine Learning, Monitoring",
    "author": null,
    "author_email": "AaltoSEA <tri.m.nguyen@aalto.fi>, nguu0123 <nguu0123@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f4/38/ffc7300f7a3c9963ba67b75b9f00890921199f32c46524c94d8d5dd6458b/qoa4ml-0.3.7.tar.gz",
    "platform": null,
    "description": "# QoA4ML - Quality of Analytics for Machine Learning Services\n\n---\n\n[![Documentation](https://img.shields.io/badge/Documentation-gray?logo=materialformkdocs)](https://rdsea.github.io/QoA4ML/)\n![PyPI - Status](https://img.shields.io/pypi/status/qoa4ml)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/qoa4ml)\n![PyPI - Version](https://img.shields.io/pypi/v/qoa4ml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/qoa4ml)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/qoa4ml)\n[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/format.json)](https://github.com/astral-sh/ruff)\n[![GitTutorial](https://img.shields.io/badge/PR-Welcome-%23FF8300.svg?)](https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project)\n[![Python CI](https://github.com/rdsea/QoA4ML/actions/workflows/python-ci.yml/badge.svg)](https://github.com/rdsea/QoA4ML/actions/workflows/python-ci.yml)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# Introduction\n\nQoA4ML consists of a set of utilities and specs for supporting quality of analytics in ML services. Especially, we focus on ML services across edge-cloud continuum, which are built as a composition of services.\n\n## QoA4ML Specification\n\nThe design of QoA4ML specification is in [language](language/)\n\n## QoA4ML Utilities\n\nDevelopers can call many functions from a QoAClient and QoA4ML's [utilities](qoa4ml_lib/utils.py) to evaluate/report ML-specific attributes (e.g., data quality, inference performance), build the quality reports, and send them to the observation services.\nThe QoAClient can be initiated with various configurations for specifying observation server and communication protocols (e.g., messaging) in different formats (e.g., json and yaml).\n\nThe detail documents for QoA4ML utilization is presented in [qoa4ml_lib](qoa4ml_lib/)\n\n> For a local build and use QoA4ML one can do:\n\n```bash\n$python3 -m pip install build\n$cd qoa4ml_lib/\n$python -m build\n```\n\n## QoA4ML Reports\n\nQoA Reports are implemented in [QoA4ML Utilities](qoa4ml_lib/qoa4ml/), an object supports developers in reporting metrics, computation graphs, and inference graphs of ML services in a concrete format.\n![Report schema](img/inf_report.png)\n\n## Examples\n\nExamples are in [examples](example/).\n\n## QoA4ML Observability\n\nThe code is in [observability](observability/)\n\n![The overall architecture of the Observability Service](img/qoa4mlos-overview.png)\n\nQoA4ML Monitor is a component monitoring QoA for a ML model which is deployed in a serving platform.\n\n- Monitoring Service: third party monitoring service used for managing monitoring data.\n  - We use Prometheus and other services: provide information on how to configure them.\n- QoA4MLObservabilityService: a service reads QoA4ML specifications and real time monitoring data and detect if any violation occurs\n\n### Implementation using OPA\n\n[OPA engine](https://www.openpolicyagent.org/docs/latest/#running-opa) is used to implement the service for checking violation under [qoa4mlopa](observability/qoa4mlopa/)\n\n### ROHE Implementation\n\nAnother new engine is currently developed under [rohe_ObService](observability/rohe_ObService/)\n\n## References\n\n- Hong-Linh Truong, Minh-Tri Nguyen, [\"QoA4ML -A Framework for Supporting Contracts in Machine Learning Services\"](https://research.aalto.fi/files/65786264/main.pdf), [The 2021 IEEE International Conference on Web Services (ICWS 2021)](https://conferences.computer.org/icws/2021/), to appear.\n- Minh-Tri Nguyen, Hong-Linh Truong [Demonstration Paper: Monitoring Machine Learning Contracts with QoA4ML](https://research.aalto.fi/files/56621517/main.pdf), Companion of the 2021 ACM/SPEC International Conference on Performance Engineering (ICPE'21), Apr. 19-23, 2021\n- https://www.researchgate.net/publication/341762862_R3E_-An_Approach_to_Robustness_Reliability_Resilience_and_Elasticity_Engineering_for_End-to-End_Machine_Learning_Systems\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Quality of Analysis for Machine Learning",
    "version": "0.3.7",
    "project_urls": {
        "AaltoSEA": "https://rdsea.github.io/",
        "Documentation": "https://rdsea.github.io/QoA4ML/",
        "Repository": "https://github.com/rdsea/QoA4ML"
    },
    "split_keywords": [
        "machine learning",
        " monitoring"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "575a2fedf487119dffc74a56ae6bbeddeb3fcb5024e51dc212bafe30ff9b7594",
                "md5": "9a50c3fbe4977ab37e4b9e88ff4778a7",
                "sha256": "1f7f856a403140d95a6b935852e17ef1a7925765b514c4359aa2a3b07e8b0317"
            },
            "downloads": -1,
            "filename": "qoa4ml-0.3.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9a50c3fbe4977ab37e4b9e88ff4778a7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 69282,
            "upload_time": "2024-09-25T08:13:17",
            "upload_time_iso_8601": "2024-09-25T08:13:17.986274Z",
            "url": "https://files.pythonhosted.org/packages/57/5a/2fedf487119dffc74a56ae6bbeddeb3fcb5024e51dc212bafe30ff9b7594/qoa4ml-0.3.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f438ffc7300f7a3c9963ba67b75b9f00890921199f32c46524c94d8d5dd6458b",
                "md5": "b520cb4188ab747b5b6e806d15082790",
                "sha256": "ba5f925971f11fca985c49939b9a114e7920b4a3cae69e56af287b943b0a0e5a"
            },
            "downloads": -1,
            "filename": "qoa4ml-0.3.7.tar.gz",
            "has_sig": false,
            "md5_digest": "b520cb4188ab747b5b6e806d15082790",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 49415,
            "upload_time": "2024-09-25T08:13:19",
            "upload_time_iso_8601": "2024-09-25T08:13:19.773958Z",
            "url": "https://files.pythonhosted.org/packages/f4/38/ffc7300f7a3c9963ba67b75b9f00890921199f32c46524c94d8d5dd6458b/qoa4ml-0.3.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-25 08:13:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rdsea",
    "github_project": "QoA4ML",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "qoa4ml"
}
        
Elapsed time: 0.41672s