- class sakkara.model.fixed.base.FixedValueComponent(value: Any, group: str | Tuple[str, ...], name: str | None = None)#
Class for non-random fixed values that appear in model that are assigned to a group.
- Parameters:
value – Value to wrap into the component.
name – Name of the corresponding variable to register in PyMC.
group – Group of which the component is defined for.
- clear()#
Clear variable and group for this and underlying components
- prebuild(groupset: GroupSet) None#
All operations to be performed before building group and variable, e.g., building the underlying components.
- Parameters:
groupset – Groups to be used for building all components of the model.
- retrieve_groups() Set[str]#
Retrieve group names for this and underlying components
- class sakkara.model.fixed.base.UnrepeatableComponent(value: Any)#
Class for components that are fixed and cannot be repeated
- build_representation(groupset: GroupSet) None#
Build the group of this component, performed after prebuild.
- Parameters:
groupset – Groups to be used for building all components of the model.
- build_variable() None#
Build the variable, performed after prebuild and build_group.
- to_minibatch(batch_size: int, group: str) ModelComponent#
Convert the component to counterpart suitable for mini-batches