Skip to main content

Impact of using synthetic data on MIA and AIA

API documentation

The documentation is generated using sphinx. To view it, clone the repo and use your web browser to open docs/build/html/index.html. To regenerate the API documentation:

sphinx-apidoc -f -F -o docs src;
sphinx-build -M html docs docs/build/

Tests

Unit tests are setup in the test directory. They use the python unittest packages. To run all tests:

python -m unittest discover -v -p "*.py" -s test

Installation

Instal with pip in a venv. In the directory containing pyproject.toml :

 pip install --editable .

Usage

Running experiments through the command line interface

python -m synthetic_aia_mia.experiments.adult <generator> <k>;
  • Generator is either identity or ctgan.
  • k folding step in 0,1,2,3,4.

Key features

#Load data
from synthetic_aia_mia.fetch_data import adult
from synthetic_aia_mia.fetch_data import utk
data_adult = adult.load()
data_utk = utk.load()

#Train a neural network an adult 
form synthetic.predictor.adult import AdultNN
adultNN = AdultNN()
adultNN.fit(data_adult["train"])

#Evalute trained neural network
adultNN.predict(data_adult["test"])

#Generate synthetic data
from synthetic_aia_mia.generator.adult import ctgan 
from synthetic_aia_mia.generator import identity 
synthetic_identity = identity(data_adult(["train"]))
synthetic_ctgan = ctgan(data_adult(["train"]))

Datasets

Adult

We are using folktables adult.

UTKFaces

From Kaggle: jangedoo/utkfaces-new. For loading and parsing files we use aia_fairness.dataset_processing

Metadata

Release files for synthetic-aia-mia 0.0.45

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synthetic-aia-mia 0.0.45
File Size Uploaded Provenance Actions
synthetic_aia_mia-0.0.45.tar.gz 2.0 MB Without provenance Details for synthetic_aia_mia-0.0.45.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synthetic-aia-mia 0.0.45
File Interpreter ABI Platform Actions
synthetic_aia_mia-0.0.45-py3-none-any.whl Python 3 none any Details for synthetic_aia_mia-0.0.45-py3-none-any.whl

Total release size: 2.0 MB

Release files / synthetic_aia_mia-0.0.45.tar.gz

Download URL synthetic_aia_mia-0.0.45.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
92ea7479f9f9372ddafd57d3acf63f94da9b7465c0b4aee476b083e9108457b0
BLAKE2b-256 checksum
How to use checksums
bee13b4b57312817c4c0330a92ce981232c2dd629605b50e6723324ed68f34d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / synthetic_aia_mia-0.0.45-py3-none-any.whl

Download URL synthetic_aia_mia-0.0.45-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d83481656301a972193d821c8a092bc89b86ebc8b038fe647819a4ba4d469e7
BLAKE2b-256 checksum
How to use checksums
8e8529a92e3af2b42b7db3351ddd02397f1f627e2513e6c737de1560cd7601fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for synthetic-aia-mia 0.0.45

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.45 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page