DatasetExecutionSerializers

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

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, describeItem: (item: TrainSetItem<Input, InputLabel>) -> String = serializeItem)

Properties

Link copied to clipboard

Renders a TrainSetItem as a short label, used wherever an item is named in a log line or a stage name. An identifier is the usual choice.

Link copied to clipboard

Renders a TrainSetItem in full, for the persisted records.

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

Renders an agent output to a string.