axiom-effect / src /axiom_effect /__init__.py
maxpagels's picture
Release 0.2.0
df166a5 verified
Raw History Blame Contribute Delete
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"]