snorkelflow.client.applications.duplicate_application
- snorkelflow.client.applications.duplicate_application(application, new_application_name, new_dataset_name=None, datasource_uids_to_load=None)
Duplicate an existing application.
- Parameters:
application (
Union
[str
,int
]) – The name or UID of the application to duplicatenew_application_name (
str
) – The name of the new applicationnew_dataset_name (
Optional
[str
], default:None
) – Dataset for the new application. Defaults to original application’s dataset.datasource_uids_to_load (
Optional
[List
[int
]], default:None
) – Optional list of datasources to activate in new application if its dataset has changed and we still want to transfer assets (LFs, GT, Tags).
- Returns:
Information on the duplicated application
- Return type:
Dict[str, Any]
Examples
>>> sf.duplicate_application(APP_NAME, DUPLICATED_APP_NAME)
{
'application_uid': <duplicated_application_uid>,
'job_ids': [<engine_job_id>,...]
}