fl4health.feature_alignment.tabular_type module

class TabularType(value)[source]

Bases: str, Enum

An enumeration.

BINARY = 'binary'
NUMERIC = 'numeric'
ORDINAL = 'ordinal'
STRING = 'string'
static get_default_fill_value(tabular_type)[source]

Provided the tabular feature type as either a string or enum, this function returns the default value for imputation to be used.

Parameters:

tabular_type (TabularType | str) – Type of tabular feature to be imputed

Raises:

ValueError – If the tabular type is unknown this will be thrown.

Returns:

Default imputation value for the specified TabularType

Return type:

Scalar