Skip to content

datarisk-io/mlops_codex

Repository files navigation

Datarisk MLOps - SDK

ikjo

A Python SDK for interacting with the MLOps API, providing tools for training, deploying, and monitoring machine learning models.


Table of Contents


Installation

  pip install datarisk-mlops-codex

Getting started

To use the SDK, you must be logged in to the application. This can be done by importing one of the provided clients, as shown in the example below

from mlops_codex.model import MLOpsModelClient

client = MLOpsModelClient()

Example of usage

PATH = './samples/asyncModel/'

# Deploying a new model
model = client.create_model(
    model_name='Teste notebook Async',
    model_reference='score',
    source_file=PATH+'app.py',
    model_file=PATH+'model.pkl',
    requirements_file=PATH+'requirements.txt',
    schema=PATH+'schema.csv', 
    python_version='3.9',
    operation="Async",
    input_type='csv',
    group='datarisk'
)

PATH = './samples/asyncModel/'
execution = model.predict(data=PATH+'input.csv', group_token='TODO', wait_complete = False)

There's also some example notebooks.


Support


Contributing

  • To learn more about making a contribution to datarisk-mlops-codex, please see our Contributing guide.

About

MLOps Codex

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 8