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
Best Answer
-
jrmdd Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 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()
Answers
-
Thank you very much @jrmdd
, it does the trick. -
A little gotcha (for further readers): sadly, it does'nt work from outside DSS.