Skip to content

Enable mlops experiment creation#10

Merged
khalifan-kfan merged 2 commits intodevelopfrom
ft-mlops-client
Apr 30, 2025
Merged

Enable mlops experiment creation#10
khalifan-kfan merged 2 commits intodevelopfrom
ft-mlops-client

Conversation

@khalifan-kfan
Copy link
Copy Markdown
Contributor

This enables us use the mlops client in both the cli and as an imported module to create experiment

How to test

CLI
cranecloud mlops create_experiment --user-id 2123 --app-alias 3u734h

As a Module ( Notebook use case)

import mlflow
from mlflow.models import infer_signature
from cranecloud import MLOpsClient

#!cranecloud mlops create-experiment --user-id="" --app-alias=""
user_id = "c5e415a3-ff0d.."
app_alias = "ngm-bsjdjks..."
client = MLOpsClient()

tracking_url,  experiment_id =  client.create_experiment(user_id=user_id, app_alias=app_alias)
tracking_url,  experiment_id =  client.create_experiment(user_id=user_id, app_alias=app_alias)
mlflow.set_tracking_uri(uri=tracking_url)
mlflow.set_experiment(experiment_id=experiment_id)

Or refer to mlops_test_notebook.ipynb added to the root

@khalifan-kfan khalifan-kfan requested a review from Mubangizi April 29, 2025 17:48
Copy link
Copy Markdown
Collaborator

@Mubangizi Mubangizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@khalifan-kfan khalifan-kfan changed the base branch from master to develop April 30, 2025 11:48
@khalifan-kfan khalifan-kfan merged commit e87373b into develop Apr 30, 2025
@khalifan-kfan khalifan-kfan deleted the ft-mlops-client branch April 30, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants