snorkelflow.client.operators.add_operator_class
- snorkelflow.client.operators.add_operator_class(operator, overwrite=False)
Add an operator class.
Parameters for custom operators are hard-coded within the user-defined function. Custom operator classes have parameters that are specified in the Application Studio overview.
Notes
Available only in the full SDK
Parameters
Parameters
Returns
Returns
Metadata associated with this code asset
Return type
Return type
Dict(str, any)
Raises
Raises
ValueError – If the custom operator class name does not begin with Custom
ValueError – If the serialized operator class is too large
ValueError – If an operator class with the same name already exists
Name Type Default Info operator Type[Any]
An custom Operator class that will be serialized. overwrite Optional[bool]
False
Overwrite an existing operator class of the same name if one already exists.