Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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
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()
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()
Thank you very much @jrmdd , it does the trick.
A little gotcha (for further readers): sadly, it does'nt work from outside DSS.