fl4health.feature_alignment.string_columns_transformer module

class TextColumnTransformer(transformer)[source]

Bases: BaseEstimator, TransformerMixin

The purpose of this class is to enable the application of text feature transformers from sklearn to a single-column pandas dataframe, which is not supported in the first place.

fit(X, y=None)[source]
Return type:

TextColumnTransformer

transform(X)[source]
Return type:

DataFrame

class TextMulticolumnTransformer(transformer)[source]

Bases: BaseEstimator, TransformerMixin

The purpose of this class is to enable the application of text feature transformers from sklearn to multiple string columns, which is not supported in the first place.

fit(X, y=None)[source]
Return type:

TextMulticolumnTransformer

transform(X)[source]
Return type:

DataFrame