How to access the model metrics and features from a deployed model?

Mohammed
Mohammed Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 44 ✭✭✭
edited July 2024 in Using Dataiku

Hi,
I have deployed a model in Dataiku flow. I'm trying to access the model from a notebook and get some model details, as shown below.

<dataikuapi.dss.metrics.ComputedMetrics at 0x7ff5ddf5eee0>

But instead of returning a list of metrics, it returns the following.

import dataiku
# Connect to the Dataiku instance
client = dataiku.api_client()
project = client.get_project(PROJECT_KEY)  
 
# Access the saved model
model_id = 'MODEL_ID'
saved_model = project.get_saved_model(model_id)
 
active_version_id=saved_model.get_active_version()['id']
saved_model.get_metric_values(active_version_id)


How do I access the model metrics? Similarly, how do I access the features used in the model?


Operating system used: Windows


Operating system used: Windows

Answers

Setup Info
    Tags
      Help me…