tabensemb.data.dataprocessor.CategoricalOrdinalEncoder.var_slip#

method

CategoricalOrdinalEncoder.var_slip(feature_name, x)[source]#

See how the transformer performs on a value of a feature.

Parameters:
feature_name:

The investigated feature.

x:

The value of the feature.

Returns:
int or float

The transformed value of the feature value x.