antecedent.attribution
Attribution helpers.
1"""Attribution helpers.""" 2 3from __future__ import annotations 4 5from ._native import ( 6 AnomalyScores, 7 ChangeAttributionResult, 8 Contribution, 9 FeatureRelevance, 10 MechanismChangeDetection, 11 anomaly_attribution, 12 attribute_distribution_change, 13 attribute_distribution_change_robust, 14 attribute_feature_relevance, 15 attribute_path_specific, 16 attribute_paths, 17 attribute_structure_change, 18 attribute_unit_change, 19 mechanism_change_detection, 20 rank_root_causes, 21) 22 23__all__ = [ 24 "AnomalyScores", 25 "ChangeAttributionResult", 26 "Contribution", 27 "FeatureRelevance", 28 "MechanismChangeDetection", 29 "anomaly_attribution", 30 "attribute_distribution_change", 31 "attribute_distribution_change_robust", 32 "attribute_feature_relevance", 33 "attribute_path_specific", 34 "attribute_paths", 35 "attribute_structure_change", 36 "attribute_unit_change", 37 "mechanism_change_detection", 38 "rank_root_causes", 39]
Anomaly scores for one outcome.
Change-attribution summary (components and optional path breakdown).
Named contribution (node or path label).
Feature relevance under interventions.
Mechanism-change detection for one node.
Anomaly scores for listed outcomes.
Fit GCM and attribute distribution change between two row ranges via Shapley.
Robust distribution-change attribution between two row ranges.
Feature relevance scores for parents of outcome.
Path-specific contribution via [PathSpecificEffectQuery] / path_decompose.
Path decomposition (all paths from sources to outcome).
Structure-change attribution between two edge lists (parent-set Shapley).
Unit-level change attribution.
Detect mechanism changes across two row ranges.
Rank root causes from a [ChangeAttributionResult].