DataVec gives us the ability to serialize the transforms so that they're portable for production environments. In this recipe, we will serialize the transformation process.
Serializing transforms
How to do it...
- Serialize the transforms into a human-readable format. We can transform to JSON using TransformProcess as follows:
String serializedTransformString = transformProcess.toJson()
We can transform to YAML using TransformProcess as follows:
String serializedTransformString = transformProcess.toYaml()