Simple Transformer which adds a constant value to input Doubles.
Simple Transformer which adds a constant value to input Doubles.
UnaryTransformer can be used to create a stage usable within Pipelines. It defines parameters for specifying input and output columns: UnaryTransformer.inputCol and UnaryTransformer.outputCol. It can optionally handle schema validation.
DefaultParamsWritable provides a default implementation for persisting instances of this Transformer.
Companion object for our simple Transformer.
Companion object for our simple Transformer.
DefaultParamsReadable provides a default implementation for loading instances of this Transformer which were persisted using DefaultParamsWritable.
An example demonstrating creating a custom org.apache.spark.ml.Transformer using the UnaryTransformer abstraction.
Run with