Skip to main content

Mechanism-learn is a simple method to deconfound observational data such that any appropriate machine learning model is forced to learn predictive relationships between effects and their causes, despite the potential presence of multiple unknown and unmeasured confounding. The library is compatible with most existing ML deployments. The library is compatible with most existing ML deployments such as models built with Scikit-learn and Keras.

Project description

To run the experiment code, please install the mechanism-learn package using the distribution file 'mechanism_learn-2.2.1-py3-none-any.whl' in the 'dist' folder.


In Python, use: import mechanism_learn.pipeline to import the mechanism learning algorithms.

Please note that due to the limit of file size, we cannot attach all experiment data, such as ICH CT scans and the Background-MNIST data. The original ICH data is available at https://physionet.org/content/ct-ich/1.3.1/. For the Background-MNIST data, it is modified from the original MNIST dataset. This semi-synthetic Background MNIST dataset can be generated by using the Python code file: .\test_data\semi_synthetic_data\semi-synthetic_data_gen.py.

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

mechanism_learn-2.3.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

mechanism_learn-2.3.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file mechanism_learn-2.3.1.tar.gz.

File metadata

  • Download URL: mechanism_learn-2.3.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mechanism_learn-2.3.1.tar.gz
Algorithm Hash digest
SHA256 4c87aaf430800a9f6dc14abbe880553d36e04af947fe1521ae579ab5b69c718c
MD5 6b3ae4c9d765cadbfd564dd06cdc73b6
BLAKE2b-256 ad3d3aad3644b6d814c4a9354a22449ffa7181b250f6486d58f7ef9ad26ff959

See more details on using hashes here.

File details

Details for the file mechanism_learn-2.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mechanism_learn-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6306c51af45e8dda1e2218929000770aec403b9c3cf2d68736ebab0d929e8581
MD5 7ce0b594d7f3da402a2e6473e1804a15
BLAKE2b-256 19e8fb5802b72ef062f12053ab89ccb9088d7caf8ba521aaa4306c1245aa7b0c

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