metacausal.aggregation.PointwiseStrategy¶
- class metacausal.aggregation.PointwiseStrategy[source]¶
Bases:
AggregationStrategyBase class for strategies that apply a fixed statistical rule pointwise.
Subclasses implement a single
aggregate()method that reduces along axis 0 using NumPyaxis=0-aware operations (np.median,np.mean, etc.). Because those operations are rank-agnostic, the same implementation handles both the CATE path ((K, n)→(n,), the base contract) and the ATE-from-component-scalars path ((K,)→ 0-d scalar) — the latter is a Pointwise-specific extension of the baseaggregatecontract. Pointwise strategies are stateless: no weights are computed at fit time.Methods
__init__aggregateReduce a
(K, n)component-CATE matrix to a(n,)ensemble CATE.Attributes
Ensemble weights, if applicable.
Details