tabensemb.data.dataprocessor.FeatureValueSelector#
- class tabensemb.data.dataprocessor.FeatureValueSelector(**kwargs)[source]#
Bases:
AbstractProcessorSelect data with the specified feature value.
- Parameters:
- feature: str
The feature that will be filtered.
- value: float
The selected feature value.
Notes
The
FeatureValueSelectorwill not change anything in the upcoming dataset, which means that the value in the upcoming set may exceed the range you expect. A typical error can be “IndexError: index out of range in self” fromtorch.embeddingbecause of categorical features.Methods
- __init__(**kwargs)#
_fit_transform(data, datamodule)kwargs required by the class.
_transform(data, datamodule)