Skip to main content

core.HasExpand

core.HasExpand()

A prior with one shared precision that can expand to one per block or per weight.

lk.laplace expands such a prior to the fitted parameters before the fit, so the hyper tuner tunes each block (Layerwise) or weight (Diagonal) on its own.

Methods

Name Description
expand The prior with its precision expanded to params.

expand

core.HasExpand.expand(params, /)

The prior with its precision expanded to params.

Parameters

Name Type Description Default
params Params The parameters the prior is over. required

Returns

Name Type Description
Self The expanded prior, or self when it already is.