emmi.pipeline.sample_processors.rename_keys

Classes

RenameKeysSampleProcessor

Utility processor that simply renames the dictionary keys in a batch.

Module Contents

class emmi.pipeline.sample_processors.rename_keys.RenameKeysSampleProcessor(key_map)

Bases: ksuit.data.SampleProcessor

Utility processor that simply renames the dictionary keys in a batch.

Parameters:

key_map (dict[str, str]) – Dict with source keys as keys and target keys as values. The source keys are renamed target keys.

key_map