LinearRegression.add_coord#

LinearRegression.add_coord(name, values=None, mutable=None, *, length=None)#

Registers a dimension coordinate with the model.

Parameters:
  • name (str) – Name of the dimension. Forbidden: {“chain”, “draw”, “__sample__”}

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

  • mutable (bool) – Whether the created dimension should be resizable. Default is False.

  • length (optional, scalar) – A scalar of the dimensions length. Defaults to pytensor.tensor.constant(len(values)).