This is the name given to the portion of a transformer that provides the analysis and/or transformation of data.
Please read the Transformers overview documentation for some additional context.
In this document we will be providing an conceptual overview of the Algorithm code structure and its implementation framework for the UA makeflow solution.
The use of the term Algorithm appears to be nebulous in that implementations can range from processing raw sensor data to performing time based analysis of derived data. The unifying principle for Algorithm implementation is the transformation of data. For example, the Algorithm implementations for RGB processing in the AgPipeline includes masking soil from the images, clipping images to plot boundaries, and calculating canopy cover from the plot-clipped image data.
By standardizing a minimal set of required file names and function signatures with return values, Algorithm implementations can easily be used in different environments. Outside of satisfying these requirements, an Algorithm implementation is free to become as complicated as necessary to do its work.
As implemented in the AgPipeline makeflow environment, Algorithm provide the following hooks:
At a minimum, an instance of the environment, provided by the Environment class, is passed in when checking the runtime environment and when processing data. For the AgPipeline Environment class implementation, additional data is also provided in the form of curated metadata and transformer metadata.
Algorithm code is expected to be derived from the Algorithm class defined in the AgPypeline library. The one mandatory function (perform_process is to be defined by the derived class, otherwise an exception is raised.
There is one mandatory function that needs to be defined, and several other optional functions, for an Algorithm implementation. Outside of these pre-defined function signatures Algorithm implementations are free to add whatever functions, files, data, API calls, etc. that’s necessary for their processing.
Optional functions:
Parameter descriptions: