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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mechanism_learn-2.3.0.tar.gz
  • Upload date:
  • Size: 12.0 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.0.tar.gz
Algorithm Hash digest
SHA256 3af51f79ee0ff745d4bb2c222adbfdcd1e2caec2b08c1060895ecc7410eef791
MD5 4bd9847d90d0c6970ae7b6e0498a55de
BLAKE2b-256 bc617cb5971bd6ac00da1ecf1da3a82f18e7f4d0e4a2b511b30ab1471b880b6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanism_learn-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7470510ccf1ea01ddd3831357678484d2af3e7ad49500f56b10ccb95d21ec00d
MD5 114ae73e1faacd9cf7a2b7873e67fefe
BLAKE2b-256 361524a8c92de4d561f29d486812736a468c30ab68117552c7214b21c77b830a

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