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

Uploaded Python 3

File details

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

File metadata

  • Download URL: anomed_anonymizer-0.0.3.tar.gz
  • Upload date:
  • Size: 9.3 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.3.tar.gz
Algorithm Hash digest
SHA256 e834e6dd32dcffdfb7ff17091247af70f5f52ed3dea9028904ffe89f00968ae4
MD5 6105080bb17ac18dd33dedac5b3ffa52
BLAKE2b-256 d3999dd9ffba39abd909fa22ecee379e1eb2da7ec0051cdedcb19d1e48f445a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anomed_anonymizer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 74d7577f23f5656755b501c0d82f519403a95023946dd2904a0b2539758ba6d2
MD5 a54f93b69f9076c6423bb298550bed45
BLAKE2b-256 de958edc0f148a0f4ae55270bcdbebda75eb1f057c7cdbb0531f65a03ca598ab

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