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

Uploaded Python 3

File details

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

File metadata

  • Download URL: anomed_anonymizer-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 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.2.tar.gz
Algorithm Hash digest
SHA256 14fd40b48cc783c6bd8bccc36ee96803359cefcb4b879933085823c9d24ad248
MD5 89a02e7706aed173c56d3d4c452857b9
BLAKE2b-256 65a2f3e8887a1cd400ebe99091b6cbdbe1e752e4b49ba942338481e2672612e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anomed_anonymizer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69e1f81538c243e5a3ddb8a9e40f28a660f0634a67d568c50b456ee5dbd94aba
MD5 7c31858b08ed40d7da0e30161225ad04
BLAKE2b-256 235e50e0a3f9ee3ed177065cbaa7235bae0db5d47f79247740e50cbe8653677f

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