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

Keufran
Keufran Registered Posts: 12 ✭✭✭✭

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

Tagged:

Best Answer

  • jrmdd
    jrmdd Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1 ✭✭✭✭
    Answer ✓

    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

Setup Info
    Tags
      Help me…