snorkelflow.sdk.SnorkelFlowPackageDeployment
- class snorkelflow.sdk.SnorkelFlowPackageDeployment(deployment_uid, **kwargs)
Bases:
DeploymentSnorkelFlowPackageDeployment class represents a deployment of a Snorkel Flow application as a SnorkelFlowPackage. This class inherits from the Deployment class.
noteThis class supports backward compatibility for the deprecated SnorkelFlowPackage deployment method. Creating new deployments is not supported. To create a new deployment, useMLflowDeployment.createinstead.- __init__(deployment_uid, **kwargs)
Initializes a Deployment object. This constructor should not be called directly. Instead, use the Deployment.create method to create a deployment.
Parameters
Parameters
Name Type Default Info deployment_uid intThe unique identifier of the deployment.
\_\_init\_\_
__init__
Methods
__init__(deployment_uid, **kwargs)Initializes a Deployment object. create(application, name)This method is not supported for SnorkelFlowPackageDeployment. delete(deployment_uid)Delete a deployment based on the provided identifier. execute(df)Execute a deployment on a pandas DataFrame. get(deployment_uid)Fetches a Deployment object based on the provided identifier. list([application])List all deployments for an application. update(name)Update the metadata for the deployment. - classmethod create(application, name)
This method is not supported for SnorkelFlowPackageDeployment. Please use
MLflowDeployment.createinstead.Parameters
Parameters
Return type
Return type
Name Type Default Info application Union[str, int]The name or UID of the application to be exported. name Optional[str]The name of the deployment. If this is not provided, deployment name will be created using the application name. Deployment names are not unique and re-running this method with the same name will create a new deployment.
create
create