Tensor.minIn

Tensor.minIn(*args)

Projection using min as operation.

Parameters:

varnames (str | Iterable[str]) – the set of vars to keep

Returns:

the projected Tensor

Return type:

pyagrum.Tensor

Example

import pyagrum as gum

a, b = gum.LabelizedVariable("a", "a", 2), gum.LabelizedVariable("b", "b", 3)
p = gum.Tensor().add(a).add(b).fillWith([1, 2, 3, 4, 5, 6])
p.minIn(["b"]).tolist()
# [1.0, 3.0, 5.0]

Class

Tensor