Download src/axiom_effect/__init__.py from liminalplanes/axiom-effect: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/liminalplanes/axiom-effect/resolve/main/src/axiom_effect/__init__.py
- Command line
-
hf download hf://liminalplanes/axiom-effect/src/axiom_effect/__init__.py
-
curl -L -o __init__.py https://huggingface.co/liminalplanes/axiom-effect/resolve/main/src/axiom_effect/__init__.py
1.09 kB
| """AxiomEffect: causal effects (ATE, ATT, per-row CATE, dose-response) from a table, for binary | |
| and continuous treatments, with or without a causal graph; the sibling of Axiom Discovery (axiom-discovery), | |
| whose discovered graphs it reads. | |
| from axiom_effect import AxiomEffect | |
| model = AxiomEffect.from_pretrained("path/or/hub-repo") | |
| print(model.effect(df, treatment="price", outcome="sales", graph=g)) | |
| See axiom_effect.inference (the table-level call) and axiom_effect.model (the network); | |
| trained and benchmarked from the axiom repository (train_effect.py).""" | |
| from .graph import ROLE_NAMES, causal_nodes, descendants, discovered_roles, is_dag, optimal_adjustment, roles | |
| from .inference import TRAIN_COVARIATES, TRAIN_N, EffectResult, effect | |
| from .model import MID, N_FEATURES, QUANTILES, AxiomEffect, release_tag | |
| __all__ = ["AxiomEffect", "EffectResult", "effect", "TRAIN_N", "TRAIN_COVARIATES", "QUANTILES", "MID", | |
| "N_FEATURES", "ROLE_NAMES", "release_tag", "descendants", "is_dag", "causal_nodes", | |
| "optimal_adjustment", "roles", "discovered_roles"] | |