tapas.attacks.closest_distance

Closest-distance attacks.

These attacks use the local neighbourhood of real records in the synthetic data to make inferences about those real records.

Classes

ClosestDistanceAIA(distance, criterion, label)

Attack that finds the closest-record to the target record, and uses the value of the sensitive attribute of that closest-record as answer to the attribute-inference attack.

ClosestDistanceMIA(distance, criterion, label)

Attack that looks for the closest record to a given target in the synthetic data to determine whether the target was in the training dataset.

LocalNeighbourhoodAttack(distance, radius[, ...])

Attack that makes a decision based on records similar to the target record, specifically all records within a sphere of a given radius, for a specific choice of distance.