Histograms

API reference: pe.histogram package.

pe.histogram.histogram.Histogram is responsible for generating the histograms over the synthetic samples. It has the following key methods:

Available Histograms

Currently, the following histograms are implemented:

  • pe.histogram.nearest_neighbors.NearestNeighbors: This histogram algorithm projects the synthetic samples and the private samples into an embedding space and computes the nearest neighbor(s) of each private sample in the synthetic samples. The histogram value for each synthetic sample is the number of times it is the nearest neighbor(s) of a private sample.