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
Parameters
Returns
Returns
Information on the duplicated application
Return type
Return type
Dict[str, Any]
Name Type Default Info application Union[str, int]
The name or UID of the application to duplicate. new_application_name str
The name of the new application. new_dataset_name Optional[str]
None
Dataset for the new application. Defaults to original application’s dataset. datasource_uids_to_load Optional[List[int]]
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). Examples
>>> sf.duplicate_application(APP_NAME, DUPLICATED_APP_NAME)
{
'application_uid': <duplicated_application_uid>,
'job_ids': [<engine_job_id>,...]
}