mixle.causal moduleΒΆ
Canonical, dependency-free causal semantics for cross-project science contracts.
- class CausalAssumption(id: 'str', kind: 'str', statement: 'str', status: 'AssumptionStatus' = <AssumptionStatus.ASSERTED: 'asserted'>, testable: 'bool' = False, evidence_refs: 'tuple[str, ...]'=())[source]
Bases:
object
- exception CausalContractError[source]
Bases:
ValueErrorRaised when a causal record would overstate what is identified.
- class CounterfactualQuery(id: 'str', estimand_ref: 'str', intervention: 'InterventionSpec', evidence_kind: 'CausalEvidenceKind' = <CausalEvidenceKind.INTERVENTION: 'intervention'>)[source]
Bases:
object
- class Estimand(id: 'str', treatment: 'str', outcome: 'str', target_population: 'str', contrast: 'str', time_horizon: 'str | None' = None, schema_version: 'str' = 'mixle.causal/v1')[source]
Bases:
object
- class IdentificationResult(estimand_ref: 'str', status: 'IdentificationStatus', assumptions: 'tuple[CausalAssumption, ...]', evidence_kind: 'CausalEvidenceKind', identifying_expression: 'str | None' = None, lower_bound: 'float | None' = None, upper_bound: 'float | None' = None, diagnostics: 'tuple[str, ...]' = (), schema_version: 'str' = 'mixle.causal/v1')[source]
Bases:
object