Skip to main content

A mini package using causal inference for machine learning models

Project description

MiniCausal

logo

Examples for Mini Causal

This folder contains runnable Jupyter notebooks demonstrating mini_causal features.

Notebooks included

  • causal_models_classifier_example.ipynb — shows how to compare two classification models using mini_causal.causality.
  • mini_causal_causal_counterfactual_example.ipynb — demonstrates the causal_counter counterfactual workflow.
  • mini_causal_prostate_with_partial_counterfactual..ipynb — example using partial_counter on the prostate dataset.

Quick start

  1. Create and activate a virtual environment (Windows PowerShell example):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
  1. Install dependencies for running the examples (see examples/requirements.txt):
python -m pip install -r examples/requirements.txt
  1. Start Jupyter Lab or Notebook and open the example notebooks:
jupyter lab
# or
jupyter notebook

Notes

  • The package expects standard data science libraries (NumPy, Pandas, SciPy, scikit-learn).
  • If you run the notebooks from the repository root, ensure mini_causal is importable (install editable):
pip install -e .

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

mini_causal-0.1.5.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

mini_causal-0.1.5-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file mini_causal-0.1.5.tar.gz.

File metadata

  • Download URL: mini_causal-0.1.5.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mini_causal-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cf53705d5a3efb27c9c3ac49f78df1eb205073314fe36450cf881bf5d0733c0f
MD5 39caae8ab98cb0b5f2ce12768f1f9a2a
BLAKE2b-256 61c0455ce8565ec7ee65d2b410342ae462cc61af57fb022a0c7cce6a7e6661b7

See more details on using hashes here.

File details

Details for the file mini_causal-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mini_causal-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mini_causal-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3f6f9bafb89b2ef31292139968861d7e7b4b2bf63398fd298021b88164370c
MD5 eec0abbaa37540b6adcf1b2afe72f9fe
BLAKE2b-256 25a010444051d6d2345534cbccc239993e6eec7fe4a975e40dc0294cd4c02c39

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