Skip to main content

Mlops-ai library for managing machine learning projects, experiments, iterations and datasets.

Project description

mlops-library

MLOps Tracking Module

Tracking module is used to track machine learning module during the process of their creation, training and evaluation. It allows users to store the most important information about the model (model name, dataset, parameters etc.) and later displays the information in MLOps App to provide insight.

Projects

An MLOps Project is a single machine learning project that consists of multiple experiments and models run as iterations

mlops.tracking.create_project

Function creates a project based on the unique title.

Arguments:

  • title: string

    Title of the created project

  • description: string, optional

    Description of the created project.

  • status: string, optional

    Status of the created project

  • archived: bool, optional

    Archived status of the created project

Returns:

  • project: dictionary

    JSON data of the created project

mlops.tracking.get_project

Function retrieves an existing project from MLOps App

Arguments:

  • project_id:

    Id od the desired project, that will be retrieved from MLOps app

Returns:

  • project: dictionary

    JSON data of the project

Experiments

MLOps experiment is a machine learning experiment that can contain many iterations

mlops.tracking.get_experiment

Function retrieves an experiment from MLOps App

Arguments:

  • experiment_id: string

    Id of the experiment, that will be retrieved from MLOps app

  • project_id: string, optional

    Id of the project, that the experiment comes from. By default value is the active project

Returns:

  • experiment: dictionary

    JSON data of the experiment

mlops.tracking.create_experiment

Function creates a new experiment

Arguments:

  • name: string

    Name of the created experiment

  • description: string, optional

    Description of the created experiment

  • project_id: string, optional

    Id of the project, that the experiment comes from

Returns:

  • experiment: dictionary

    JSON data of the created experiment

mlops.tracking.create_dataset

Function creates new mlops dataset

Arguments

  • dataset_name: name of the created dataset

  • path_to_dataset: path to dataset files

  • dataset_description: short description of the dataset displayed in the app

  • tags: tags for dataset

  • version: version of the dataset

Returns:

  • dataset: json data of created dataset

Iterations

MLOps Iterations contain informations of a single machine learning model run

mlops.tracking.start_iteration

Function creates an instance of Iteration

Arguments:

  • iteration_name: string

    name of the created iteration

  • project_id: string, optional

    Id of the target project. By default value is the id of the active project

  • experiment_id: string, optional

    Id of the target experiment. By default value is the id of the active experiment

Returns:

  • iteration dictionary JSON data of the created iteration

iteration.log_path_to_model

Function logs the path to model file

Arguments:

  • path_to_model: string

    Path to the file containing the tracked model

iteration.log_metric

Function logs a single metric along with it's value

Arguments:

  • metric_name: string

    Name of the logged metric

  • value:

    Value of the logged metric

iteration.log_metrics

Function logs multiple metrics at once

Arguments:

  • metrics: dictionary

    Dictionary containing metric: value pairs that are going to be logged

iteration.log_parameter

Function logs a single parameter along with it's value

Arguments:

  • parameter_name:

    Name of the logged parameter

  • value:

    Value of the logged parameter

iteration.log_parameters

Function logs multiple parameters at once

Arguments:

  • parameters: dictionary

    Dictionary containing parameter: value pairs that are going to be logged

iteration.log_dataset

Function logs an existing dataset with an iteration.

Arguments:

  • dataset_id: string

    Id of an existing dataset in webapp

iteration.end_iteration

Function ends the iteration and sends the logged data to the MLOps App

Returns:

  • iteration: dictionary

    JSON data of created iteration

Settings

Tracking module contains local settings that can specify active project and experiment

mlops.tracking.set_active_project

Function sets the active project to given project id of an existing MLOps project

Arguments:

  • project_id: string

    Id of the project, that will be set as active

Returns:

  • result: string

    Message informing about the new active project

mlops.tracking.set_active_experiment

Function sets the active experiment to given experiment id of an existing MLOps experiment

Arguments:

  • experiment_id: string

    Id of the experiment, that will be set as active

Returns:

  • result: string

    Message informing about the new active experiment

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

mlops-ai-1.2.8.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

mlops_ai-1.2.8-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file mlops-ai-1.2.8.tar.gz.

File metadata

  • Download URL: mlops-ai-1.2.8.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for mlops-ai-1.2.8.tar.gz
Algorithm Hash digest
SHA256 90f3b2f1f6490a487805aeab0d89d99c061bc3fa318b9ee20ce1d0fb1b1dbbe8
MD5 f7b4acb39dfad618fcc955bec8c5f6c8
BLAKE2b-256 3a4e34c35cee87c3d281775005d25371d836d79c2f0427173932deb780a60846

See more details on using hashes here.

File details

Details for the file mlops_ai-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: mlops_ai-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for mlops_ai-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8e6f8d3fa750779dd35400f1a0f46ffc121e67e7e0760c32a45e05eb13ccfd
MD5 ae6079d085b7619e850b201b373f86f4
BLAKE2b-256 c264d4c31179504b4715679ff494ab51d9fd0237d09f0133b231a7a22e2aad27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page