qolmat.imputations.preprocessing.WrapperTransformer

class qolmat.imputations.preprocessing.WrapperTransformer(transformer: TransformerMixin, wrapper: TransformerMixin)[source]

Wrap a transformer.

Wrapper with reversible transformers designed to embed the data.

__init__(transformer: TransformerMixin, wrapper: TransformerMixin)[source]
fit(X: ndarray[tuple[int, ...], dtype[_ScalarType_co]], y: Optional[ndarray[tuple[int, ...], dtype[_ScalarType_co]]] = None) WrapperTransformer[source]

Fit the model according to the given training data.

Parameters
XNDArray

Input array.

yOptional[NDArray], optional

_description_, by default None

Returns
Self

The object itself.

fit_transform(X: ndarray[tuple[int, ...], dtype[_ScalarType_co]]) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]

Fit the model according to the given training data and transform it.

Parameters
XNDArray

Input array.

Returns
NDArray

Transformed array.

transform(X: ndarray[tuple[int, ...], dtype[_ScalarType_co]]) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]

Transform X.

Parameters
XNDArray

Input array.

Returns
NDArray

Transformed array.

Examples using qolmat.imputations.preprocessing.WrapperTransformer

Benchmark for categorical data

Benchmark for categorical data