A mini package using causal inference for machine learning models
Project description
MiniCausal
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 usingmini_causal.causality.mini_causal_causal_counterfactual_example.ipynb— demonstrates thecausal_countercounterfactual workflow.mini_causal_prostate_with_partial_counterfactual..ipynb— example usingpartial_counteron the prostate dataset.
Quick start
- Create and activate a virtual environment (Windows PowerShell example):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
- Install dependencies for running the examples (see
examples/requirements.txt):
python -m pip install -r examples/requirements.txt
- 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_causalis importable (install editable):
pip install -e .
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf53705d5a3efb27c9c3ac49f78df1eb205073314fe36450cf881bf5d0733c0f
|
|
| MD5 |
39caae8ab98cb0b5f2ce12768f1f9a2a
|
|
| BLAKE2b-256 |
61c0455ce8565ec7ee65d2b410342ae462cc61af57fb022a0c7cce6a7e6661b7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a3f6f9bafb89b2ef31292139968861d7e7b4b2bf63398fd298021b88164370c
|
|
| MD5 |
eec0abbaa37540b6adcf1b2afe72f9fe
|
|
| BLAKE2b-256 |
25a010444051d6d2345534cbccc239993e6eec7fe4a975e40dc0294cd4c02c39
|