ertk.transform.SequenceTransformWrapper

class ertk.transform.SequenceTransformWrapper(transformer: TransformerMixin, method: str)

Bases: SequenceTransform

Wrapper around a scikit-learn transform that can process sequences of vectors.

Parameters:
transformer:

An object which implements the fit_transform() method on a collection of 1D vectors.

method: str

The method to manipuate the sequence into 1D vectors, one of {“feature”, “global”}. If “feature” then each feature column of the concatenated (2D) input is transformed independently. If “global” then the transformer is fitted over the whole input including all feature columns.

__init__(transformer: TransformerMixin, method: str)

Methods

__init__(transformer, method)

fit(X[, y])

transform(X, **fit_params)

Inherited Methods

fit_transform(X[, y])

Fit to data, then transform it.

get_params([deep])

Get parameters for this estimator.

set_output(*[, transform])

Set output container.

set_params(**params)

Set the parameters of this estimator.