seldonian.parse_tree.nodes.ConstantNode¶
- class ConstantNode(name, value, **kwargs)¶
Bases:
Node
- __init__(name, value, **kwargs)¶
Class for constant leaf nodes in the parse tree. Sets lower and upper bound as the value of the constant.
- Parameters:
name (str) – The name of the node
value (float) – The value of the constant the node represents
- Variables:
node_type (str) – ‘constant_node’
- __repr__()¶
The string representation of the node. Also, what is displayed inside the node box in the visual graph
Methods