Is there a way to find what input I get?

Options
Detava
Detava Registered Posts: 1

I'm trying to create a recipe where I take "Id" from get_input_names_for_role() and I need to know if it is a saved model or a managed folder or file. Can anyone tell me if there's a way to make a conditional statement in python to check the object type of the given input?

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,209 Dataiker
    Options

    I think you should be able to use :

    from dataiku.customrecipe import get_output_names_for_role, get_input_names_for_role, get_recipe_config

    "get_recipe_config()" to determine the type of the input and add your conditions based on this.

    Let me know if that works for you.

Setup Info
    Tags
      Help me…