laplace#

Initialise parameters to match a double exponential function.

laplace_init#

hypercoil.init.laplace.laplace_init(*, shape: Tuple[int, ...], loc: Sequence[int] | None = None, width: Sequence[float] | None = 1, normalise: Literal['max', 'sum'] | None = None, var: float = 0.02, excl_axis: Sequence[int] | None = None, key: PRNGKey) Tensor[source]#

LaplaceInitialiser#

class hypercoil.init.laplace.LaplaceInitialiser(loc: 'Optional[Sequence[int]]' = None, width: 'Optional[Sequence[float]]' = None, normalise: "Optional[Literal['max', 'sum']]" = None, var: 'float' = 0.02, excl_axis: 'Optional[Sequence[int]]' = None, mapper: 'Optional[Type[MappedParameter]]' = None)[source]#

Methods

init(model, *[, mapper, loc, width, ...])

Initialise a parameter using the specified initialiser and mapper.