per_obs_filter¶
- nyx.core.filters.per_obs_filter(tree)[source]¶
Boolean mask for every per-observation leaf in tree.
True for the
factorof aParameterwithper_obs=True, and for everything below aPerObs.- Parameters:
tree (pytree)
- Returns:
A filter spec: the same shape as tree, with a bool at every leaf and a single
Truestanding in for a wholePerObssubtree.- Return type:
pytree