error Failed: Failed to run function : : 'DSSManagedFolder' object has no a

Options
marirapellini
marirapellini Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 16

Hi

I am trying to create an API but I need to access an entire folder and not only single files. In this folder there is the model that I want to load in order to make my prediction. How can I do so ? Thank you

Answers

  • Catalina
    Catalina Dataiker, Dataiku DSS Core Designer, Registered Posts: 135 Dataiker
    Options

    Hi @marirapellini
    ,

    Can you please share your code and the complete error that you are getting?

  • marirapellini
    marirapellini Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 16
    Options

    Hi

    I have the model saved using mlflow in a folder and I create the connection in the API like this:

    model_folder = dataikuapi.dss.managedfolder.DSSManagedFolder(client, "VISION", "FVWgHWWl")

    Later, I need to get the path of this folder in order to be able to load my model (this is a costum model and I use a custom function in order to load it) but I cannot find it cause apparently a dssmanaged folder does not have get_path().

    is there a way to solve this?

    thank you

Setup Info
    Tags
      Help me…