NormalGammaPrior._check#
- NormalGammaPrior._check()[source]#
Reject hyperparameters that do not describe a prior.
Called from
_initial_scales(), so the error surfaces at fit rather than at construction, matching the Minnesota family.- Raises:
SpecificationError – If the shape or the deterministic scale is not positive.
- Return type:
Example
>>> NormalGammaPrior(shape=0.0)._check() Traceback (most recent call last): ... cultivars.exceptions.SpecificationError: shape must be positive; got 0.0.