DatasetExecutionSerializers

data class DatasetExecutionSerializers<Input, Output, InputLabel>(val serializeItem: (item: TrainSetItem<Input, InputLabel>) -> String, val serializeOutput: (output: Output) -> String)

Caller-supplied serializers that render dataset items and agent outputs to strings for persistence and logging. Lets the infrastructure record execution data without knowing the concrete Input/Output/InputLabel types.

Constructors

Link copied to clipboard
constructor(serializeItem: (item: TrainSetItem<Input, InputLabel>) -> String, serializeOutput: (output: Output) -> String)

Properties

Link copied to clipboard

Renders a TrainSetItem (input plus its label) to a string.

Link copied to clipboard
val serializeOutput: (output: Output) -> String

Renders an agent output to a string.