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.7.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.7-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anomed_anonymizer-0.0.7.tar.gz
Algorithm Hash digest
SHA256 81b55c7cafd00eea759720b458bc38ccd75fdfc7860855ebd9429479498af5a8
MD5 3aa7285e5859c915f2c088712520682a
BLAKE2b-256 a34f1d6ef64b3fdc7718bd97042de39299c64dddee9e318dc0b07bde397ed213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anomed_anonymizer-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d69f46844d09de1c6bed1f95e798ad18ec4803af492889bcd3a545c3543f568
MD5 27ac893aac6345037a25b2396bd18d60
BLAKE2b-256 00f5313478f123a0449139452c28ebc381ca60736cd178552cbadab778b3a10b

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