Key Components ποΈ
Operator
The most atomic component of UpTrain
An Operator is used to perform operations on a dataset. They are defined as regular table transforms. Each Operator is defined as a pydantic model, which specifies:
- Required input columns in the input dataset and output column names
- Parameter values to customize the evaluation.
Each Operator implements two methods, which are to be run in order:
setup()
- Loads models, sets up file addresses etc.run()
- Runs the operator. It takes 0 or more Polars DataFrames as input, and returns a dictionary with theoutput
key set to the computed DataFrame/None. Any extra information can be found in theextra
key.
Though operators can be used on their own, they are typically used in Checks, that make it easy to add Charts chain multiple operators together. Using a Check
, you wonβt have to manually perform the setup()
and run()
methods.
To learn more about Operators, see the Operator documentation.
You can also create your own custom operators. To learn more, see the Custom Operator tutorial.