Skip to main content

A library aiding to create anonymizers (privacy preserving machine learning models) for the AnoMed competition platform.

Project description

Code style: black pipeline status coverage

Anonymizer

A library aiding to create anonymizers (privacy preserving machine learning models) for the AnoMed competition platform.

Usage Example

import sklearn
import sklearn.linear_model

import anomed_anonymizer as anonymizer

estimator = sklearn.linear_model.LinearRegression()
example_anon = anonymizer.WrappedAnonymizer(
    anonymizer=estimator,
    serializer=anonymizer.pickle_anonymizer,
    input_array_validator=lambda _: None,
)

app = anonymizer.supervised_learning_anonymizer_server_factory(
    anonymizer_identifier="example_anonymizer",
    anonymizer_obj=example_anon,
    model_filepath="model",
    default_batch_size=64,
    training_data_url="http://example.com/train",
    tuning_data_url="http://example.com/tuning",
    validation_data_url="http://example.com/validation",
    utility_evaluation_url="http://example.com/utility",
    model_loader=anonymizer.unpickle_anonymizer,
)

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

anomed_anonymizer-0.0.6.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anomed_anonymizer-0.0.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file anomed_anonymizer-0.0.6.tar.gz.

File metadata

  • Download URL: anomed_anonymizer-0.0.6.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for anomed_anonymizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ccfe8e94e89f514905a4685f0c0c246958f771474634b1f29e926c20f2de1059
MD5 27ae57d7308483ffa20deecee04659d5
BLAKE2b-256 49ded775d24cffff2b7765c8110a5050553ccd62fd92ada248f40990c195d704

See more details on using hashes here.

File details

Details for the file anomed_anonymizer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for anomed_anonymizer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 248d41c2ca90380c3760e265afb63d1d607e2f85bd4f315ae9ab68f81b2d2334
MD5 5b65b36fc3abf19aafd7fa246860c55b
BLAKE2b-256 05b027c5931c3a5db37d3868013e82466176fbf6bb5ed39998178224203c8059

See more details on using hashes here.

Supported by

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