pe.callback.common package
Submodules
pe.callback.common.compute_fid module
- class pe.callback.common.compute_fid.ComputeFID(priv_data, embedding)[source]
Bases:
Callback
The callback that computes the Frechet Inception Distance (FID) between the private and synthetic data.
- __call__(syn_data)[source]
This function is called after each PE iteration that computes the FID between the private and synthetic data.
- Parameters:
syn_data (
pe.data.data.Data
) – The synthetic data- Returns:
The FID between the private and synthetic data
- Return type:
- __init__(priv_data, embedding)[source]
Constructor.
- Parameters:
priv_data (
pe.data.data.Data
) – The private dataembedding (
pe.embedding.embedding.Embedding
) – The embedding to compute the FID
pe.callback.common.save_checkpoints module
- class pe.callback.common.save_checkpoints.SaveCheckpoints(output_folder, iteration_format='09d')[source]
Bases:
Callback
The callback that saves checkpoints of the synthetic data.
- __call__(syn_data)[source]
This function is called after each PE iteration that saves checkpoints of the synthetic data.
- Parameters:
syn_data (
pe.data.data.Data
) – The synthetic data