pasteur.extras.synth.privbayes.implementation.Node

pasteur.extras.synth.privbayes.implementation.Node#

class pasteur.extras.synth.privbayes.implementation.Node(attr, value, p, domain, partial)[source]#

Attributes

attr

Alias for field number 0

domain

Alias for field number 3

p

Alias for field number 2

partial

Alias for field number 4

value

Alias for field number 1

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

attr: str#

Alias for field number 0

count(value, /)#

Return number of occurrences of value.

domain: int#

Alias for field number 3

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

p: Sequence[tuple[str | tuple[str, int] | None, str | tuple[str, ...], dict[str, int] | int] | tuple[str | tuple[str, ...], dict[str, int] | int]]#

Alias for field number 2

partial: bool#

Alias for field number 4

value: str#

Alias for field number 1