seldonian.parse_tree.operators

Module containing global variables used during the construction of parse trees

op_mapper: dict

Maps the supported ast operators to string representations of those operators as they appear in behavioral constraint strings

not_supported_op_mapper: dict

Not supported ast operators, mapped to string representations of those operators as they appear in behavioral constraint strings

bounds_required_dict: dict

Defines a map specifying which child bounds are required for each operator. If an operator has two children, A and B, then arrays are boolean of length 4, like: [need_A_lower,need_A_upper,need_B_lower,need_B_upper]

If an operator has one child, A, then arrays are boolean: [need_A_lower, need_A_upper]