Skip to main content

AIA and MIA attack versus synthetic and real data.

Project description

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

#Load data
from synthetic.fetch_data import adult
from synthetic.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"])

Datasets

Adult

We are using folktables adult.

UTKFaces

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synthetic_research-0.0.1.tar.gz (1.8 MB view details)

Uploaded Source

File details

Details for the file synthetic_research-0.0.1.tar.gz.

File metadata

  • Download URL: synthetic_research-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for synthetic_research-0.0.1.tar.gz
Algorithm Hash digest
SHA256 02eb99aaa51a5fb92ca6d6553ba4622f0099d76c8b2fe0e74834769e730433d4
MD5 186a4b6d3e00d2f5906b494e5dbc92a4
BLAKE2b-256 b9682910026a083ae211a6769dcbac5739ce402e048e49e601e925c6ef235b32

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page