SingleTransformer (autotransform.transformer.single)

An interface for Transformers that operate on single Items with no metadata needs.

class autotransform.transformer.single.SingleTransformer

Bases: Transformer[NoneType], ABC

A simple interface for writing a Transformer that operates on an individual Item level.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

transform(batch: Batch) None

Splits out all Items to be transformed.

Parameters:

batch (Batch) – The Batch being transformed.