Memory savers

class sekupy.preprocessing.memory.MemoryReducer(dtype=<class 'numpy.float16'>, **kwargs)[source]
transform(ds)[source]

Transform the provided dataset.

This method applies the transformation to the dataset and records the transformation in the dataset’s preprocessing history.

Parameters:

ds (Dataset) – The dataset to transform

Returns:

The transformed dataset

Return type:

Dataset