pasteur.graph.loss.ParentMeta#
- class pasteur.graph.loss.ParentMeta(sum_dims: tuple[int, ...], idx: ndarray | None = None, b_doms: tuple[int, ...] = (), transpose: tuple[int, ...] = (), transpose_undo: tuple[int, ...] = ())[source]#
Contains the necessary metadata to align a parent clique to an observation clique.
First, attributes that are not present in an observation clique are summed out. Then the common dimensions that are different are transposed to the front and indexed. Finally, the transpose is undone and the cliques are aligned.
Attributes
Alias for field number 2
Alias for field number 1
Alias for field number 0
Alias for field number 3
Alias for field number 4
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
-
b_doms:
tuple[int,...]# Alias for field number 2
- count(value, /)#
Return number of occurrences of value.
-
idx:
ndarray|None# Alias for field number 1
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.
-
sum_dims:
tuple[int,...]# Alias for field number 0
-
transpose:
tuple[int,...]# Alias for field number 3
-
transpose_undo:
tuple[int,...]# Alias for field number 4
-
b_doms: