MRFSpec

Contents

MRFSpec#

class liesel_gam.MRFSpec(mapping: CategoryMapping, nb: dict[str, list[str]] | None, ordered_labels: list[str] | None, polys: dict[str, ArrayLike] | None)[source]#

Bases: NamedTuple

A named tuple, containing information about the Markov random field setup.

The MRFSpec has the attributes nb (neighborhood structure), mapping (label-integer map for the region labels), and ordered_labels (ordered labels, such that the order correspond to the columns of the basis matrix.)

Attributes

mapping

Alias for field number 0

nb

Alias for field number 1

ordered_labels

Alias for field number 2

polys

Alias for field number 3