lore_sa.rule.Expression
- class lore_sa.rule.Expression(variable: str, operator: Callable, value)[source]
Utility object to define a logical expression. It is used to define the premises of a Rule emitted from a surrogate model.
- __init__(variable: str, operator: Callable, value)[source]
- Param[str] variable
name of the variable that defines the rule
- Param[Callable] operator
logical operator involved in the rule
- Parameters
value – numerical value to define the rule. E.g. variable > value
Methods
__init__
(variable, operator, value)- param[str] variable
name of the variable that defines the rule
it converts the logical operator into a string representation.