Tensor.minIn
- Tensor.minIn(*args)
Projection using
minas operation.- Parameters:
varnames (
str | Iterable[str]) – the set of vars to keep- Returns:
the projected Tensor
- Return type:
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