Normalizer

class sekupy.preprocessing.normalizers.DatasetFxNormalizer(name='ds_fx_normalizer', norm_fx=<ufunc 'divide'>, ds_fx=<function std>)[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

class sekupy.preprocessing.normalizers.FeatureAttrNormalizer(name='sample_target_normalizer', attr_dict={'targets': 'rest'})[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

class sekupy.preprocessing.normalizers.FeatureSigmaNormalizer(name='sample_sigma_normalizer', attr='targets')[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

class sekupy.preprocessing.normalizers.FeatureZNormalizer(chunks_attr=None, param_est=None, **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

class sekupy.preprocessing.normalizers.SampleFxNormalizer(name='sample_fx_normalizer', fx=<ufunc 'log'>)[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

class sekupy.preprocessing.normalizers.SampleSigmaNormalizer(name='sample_sigma_normalizer', **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

class sekupy.preprocessing.normalizers.SampleZNormalizer(name='sample_znormalizer', **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