Regression

class sekupy.preprocessing.regression.FeatureResidualTransformer(name='feature_residual', **kwargs)[source]
transform(ds, **model_kwargs)[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

class sekupy.preprocessing.regression.SampleResidualTransformer(name='sample_residual', **kwargs)[source]
transform(ds, **model_kwargs)[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