tapas.attacks.set_classifiers.CorrSetFeature

class tapas.attacks.set_classifiers.CorrSetFeature

Bases: tapas.attacks.set_classifiers.SetFeature

F_Corr set feature from Stadler et al. Compute linear correlation between features. For categorical attributes, do this after 1-hot encoding.

__init__()

Methods

__init__()

extract(datasets)

Compute correlations between numeric attributes and 1-hot encoded categorical attributes.

Attributes

label

extract(datasets: list[TabularDataset]) np.array

Compute correlations between numeric attributes and 1-hot encoded categorical attributes.