LinearTerm.summarise_by_samples()#
- LinearTerm.summarise_by_samples(key, samples, n=100, x=None, center=False, scale=False, indices=None)[source]#
Computes a posterior summary for this term based on a subsample from the posterior.
- Parameters:
key (
Any
) – Ajax.random.PRNGKey
for reproducibility.n (
int
) – The number of samples to draw. (default:100
)x (
Optional
[Any
]) – Array of covariate values. (default:None
)center (
bool
) – Whether to center the predictions. (default:False
)scale (
bool
) – Whether to scale the predictions. (default:False
)indices (
Optional
[Sequence
[int
]]) – If not None, only the columns ofx
with these indices are used. (default:None
)
- Return type:
DataFrame