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:
operator (
Type
[Any
]) – An custom Operator class that will be serializedoverwrite (
Optional
[bool
], default:False
) – Overwrite an existing operator class of the same name if one already exists
- Returns:
Metadata associated with this code asset
- Return type:
Dict(str, any)
- 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