auswahl.benchmarking.util.helpers.Selection

class auswahl.benchmarking.util.helpers.Selection(selected_features: List[int] = [])[source]

Helper class allowing the handling of lists of different lengths in a single pandas DataFrame.

Parameters
selected_features: List[int], default=None

List of feature indices wrapped by this instance.

Attributes
features: List[int]

List of feature indices contained in the instance.

__init__(selected_features: List[int] = [])[source]
is_valid()[source]

Indicates, whether the selection has been produced by a selector execution raising an error during benchmarking or is valid.

Returns
validity flag: bool