metacausal.aggregation.NuisanceEstimates¶
- class metacausal.aggregation.NuisanceEstimates(e_hat, mu1_hat, mu0_hat)[source]¶
Bases:
objectOut-of-fold nuisance model predictions.
- Variables:
e_hat (array of shape (n,)) – Propensity scores P(T=1|X), trimmed to [propensity_trim, 1-propensity_trim]. Already trimmed at fit time — do not untrim before computing pseudo-outcomes.
mu1_hat (array of shape (n,)) – Out-of-fold predictions of E[Y|X, T=1].
mu0_hat (array of shape (n,)) – Out-of-fold predictions of E[Y|X, T=0].
- Parameters:
Notes
For TrainAvgSplit, positions corresponding to the training set are np.nan. Only the averaging-set positions (fold_spec.test_indices[0]) are populated.
Methods
__init__Attributes
Details