seldonian.parse_tree.nodes.Node

class Node(name, lower, upper)

Bases: object

__init__(name, lower, upper)

The base class for all parse tree nodes

Parameters:
  • name (str) – The name of the node

  • lower (float) – Lower confidence bound

  • upper (float) – Upper confidence bound

Variables:
  • index (int) – The index of the node in the tree

  • left (Node object, defaults to None) – Left child node

  • right (Node object, defaults to None) – Right child node

  • will_lower_bound (bool) – Whether this node needs a lower bound

  • will_upper_bound (bool) – Whether this node needs an upper bound

__repr__()

The string representation of the node. Also, what is displayed inside the node box in the visual graph

Methods