April 2018
Beginner to intermediate
282 pages
6h 52m
English
A FunctionTransformer is used to define a user-defined function that consumes the data from the pipeline and returns the result of this function to the next stage of the pipeline. This is used for stateless transformations, such as taking the square or log of numbers, defining custom scaling functions, and so on.
In the following example, we will build a pipeline using the CustomLog function and the predefined preprocessing method StandardScaler: