snorkelflow.client.workflows.execute_workflow
- snorkelflow.client.workflows.execute_workflow(df, workflow_uid, monitor=False, return_outputs=False)
Execute an exported workflow running on a Snorkel Flow development instance on a new Pandas DataFrame.
Deprecated since version 2024.R1: Use
Deployment.executeinstead.Parameters
Parameters
Returns
Returns
Dictionary mapping outputs in Workflow DAG to corresponding Pandas DataFrame. If return_outputs is False, assumes there is only 1 output, and returns the corresponding dataframe.
Return type
Return type
Dict(str, pandas.DataFrame) or pandas.DataFrame
Name Type Default Info df DataFrameData over which to execute the workflow. workflow_uid intUID of the workflow to execute. monitor boolFalseWhether to store the monitoring data. Default is set to False. return_outputs boolFalseWhether to return workflow output as a dictionary of output names to dataframes. If False, assumes there is only one output in the workflow and directly returns the corresponding the dataframe.