pymc.Model.add_coord#

Model.add_coord(name, values=None, mutable=False, *, length=None)[source]#

Registers a dimension coordinate with the model.

Parameters
namestr

Name of the dimension. Forbidden: {“chain”, “draw”, “__sample__”}

valuesoptional, array_like

Coordinate values or None (for auto-numbering). If None is passed, a length must be specified.

mutablebool

Whether the created dimension should be resizable. Default is False.

lengthoptional, scalar

A scalar of the dimensions length. Defaults to aesara.tensor.constant(len(values)).