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