ed.get_siblings

Aliases:

  • ed.get_siblings
  • ed.util.get_siblings
get_siblings(
    x,
    collection=None
)

Defined in edward/util/random_variables.py.

Get sibling random variables of input.

Args:

  • x: RandomVariable or tf.Tensor. Query node to find siblings of.
  • collection: list of RandomVariable. The collection of random variables to check with respect to; defaults to all random variables in the graph.

Returns:

list of RandomVariable. Sibling random variables of x.

Examples

a = Normal(0.0, 1.0)
b = Normal(a, 1.0)
c = Normal(a, 1.0)
assert ed.get_siblings(b) == [c]