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.5.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

mlops_ai-1.2.5-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mlops-ai-1.2.5.tar.gz
Algorithm Hash digest
SHA256 410d006a2288f15750983a10dbb6dd2479d206b9768a43acfff0471d404c8d68
MD5 226f071ce64e0a914bdfe8e46bc01ed2
BLAKE2b-256 e9de19f4b80f12540b68925749d4022640099dba51d87ce0bcc979e04af3b89d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mlops_ai-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fcf5e450f6980f59b41dac8d668a7a6ad4a6dccde484fca00870df258e5101e6
MD5 8653041dd261d2ee3f894a894f6eddc3
BLAKE2b-256 7e817c024b0ace64765984d5255136da1b855d071429b3077137e593e1a05beb

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