Help Shape the Future of Dataiku Join our User Research Program

API : retrieving Model's features (from outisde DSS)

Solved!
Keufran
Level 2
API : retrieving Model's features (from outisde DSS)

Hello Dataiku-world,

I'm struggling to retrieve the features (names, type) used by a model/version with the API. Any idea or pointers ? My goal is to check that a documentation contains all the features used. 

I tried to use the dataiku.Model class but with no luck. I'm actually looking at the DSSMLTask but I'm still wondering how to obtain such an instance starting from the model name.

Br,

Franck

0 Kudos
1 Solution
jrmdd
Level 1

Something like that should give you the features name of the input of your model (at this point, all the feature are numerical)

 

import dataiku
m = dataiku.Model('KQfQHzwj')
my_predictor = m.get_predictor()
my_predictor.get_features()

 

View solution in original post

0 Kudos
2 Replies
jrmdd
Level 1

Something like that should give you the features name of the input of your model (at this point, all the feature are numerical)

 

import dataiku
m = dataiku.Model('KQfQHzwj')
my_predictor = m.get_predictor()
my_predictor.get_features()

 

View solution in original post

0 Kudos
Keufran
Level 2
Author

Thank you very much @jrmdd , it does the trick.

0 Kudos
Labels (1)
A banner prompting to get Dataiku DSS