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.4.tar.gz (9.6 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.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anomed_anonymizer-0.0.4.tar.gz
  • Upload date:
  • Size: 9.6 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.4.tar.gz
Algorithm Hash digest
SHA256 74513bfb2ad14e147cf42e320af6af3a5c88e44af19af6add629d233256fb13e
MD5 9faec2860ae89aa937d92de6c4ad4a45
BLAKE2b-256 914c816bb482cdbe00f9a16e3175ba7a29691d6883e0463e15721756d885ca5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anomed_anonymizer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6feed7abbe35dfb025e6860ed558aaf7c0f924ef9f6dd709a2d2e7b6a1f095ee
MD5 ac09eee6582deae02d5cf702b84c3467
BLAKE2b-256 80bfaa7229cd2a35eee03c64ce4157a9b48b513e4f73918e75091b17d2b4e073

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