DataVec Serialization

Serializing transforms

DataVec comes with the ability to serialize transforms, which allows them to be more portable when they’re needed for production environments. A TransformProcess is serialzied to a human-readable format such as JSON and can be saved as a file.

Serialization

The code below shows how you can serialize the transform process tp.

String serializedTransformString = tp.toJson()

Deserialization

When you want to reinstantiate the transform process, call the static from<format> method.

TransformProcess tp = TransformProcess.fromJson(serializedTransformString)

Available serializers


JsonSerializer

[source]

Serializer used for converting objects (Transforms, Conditions, etc) to JSON format


YamlSerializer

[source]

Serializer used for converting objects (Transforms, Conditions, etc) to YAML format

API Reference

API Reference

Detailed API docs for all libraries including DL4J, ND4J, DataVec, and Arbiter.

Examples

Examples

Explore sample projects and demos for DL4J, ND4J, and DataVec in multiple languages including Java and Kotlin.

Tutorials

Tutorials

Step-by-step tutorials for learning concepts in deep learning while using the DL4J API.

Guide

Guide

In-depth documentation on different scenarios including import, distributed training, early stopping, and GPU setup.

Deploying models? There's a tool for that.