Discover the winners & finalists of the 2022 Dataiku Frontrunner Awards!READ THEIR USE CASES

Retrieve feature importance from partioned model

Solved!
julesbertrand
Level 2
Retrieve feature importance from partioned model

Hello, 

Is there a way to automatically retrieve (via a recipe) features importances of a partitioned model, by partition, in DSS please ?

I tried to do it through a python recipe with the following code:

 

import dataiku
import pandas as pd

client = dataiku.api_client()
project = client.get_project(dataiku.default_project_key())
model = project.get_saved_model("BE8E0mVs")


perf = model.get_version_details('initial').get_raw().get("iperf")

 

But then perf is empty, I cannot do perf.retrieve("rawImportance") as suggested here. The code snippet works on an unpartitioned model though.

Thanks

0 Kudos
1 Solution
AlexT
Dataiker

Hi @julesbertrand ,

The get_predictor() and get_version_metrics() are not yet supported for partitioned models. We do have this feature request in our backlog.

Thanks,

View solution in original post

1 Reply
AlexT
Dataiker

Hi @julesbertrand ,

The get_predictor() and get_version_metrics() are not yet supported for partitioned models. We do have this feature request in our backlog.

Thanks,