Activation
Activation
¶
Bases: ABC
Abstract class for activation methods.
Activation methods implement the criteria to activate the rules in a rule block. Activation methods should process every rule and determine whether the rule is to be activated or deactivated.
related
Functions¶
__repr__
¶
__repr__() -> str
Returns the code to construct the activation method in Python.
Returns:
Type | Description |
---|---|
str
|
code to construct the activation method in Python. |
__str__
¶
__str__() -> str
Return the code to construct the activation method in the FuzzyLite Language.
Returns:
Type | Description |
---|---|
str
|
code to construct the activation method in the FuzzyLite Language. |
activate
abstractmethod
¶
activate(rule_block: RuleBlock) -> None
Implement the activation method of the rule block.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rule_block |
RuleBlock
|
rule block to activate |
required |
assert_is_not_vector
¶
assert_is_not_vector(activation_degree: Scalar) -> None
Assert that the activation degree is not a vector.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
activation_degree |
Scalar
|
activation degree to assert |
required |
Raises:
Type | Description |
---|---|
ValueError
|
if the activation degree contains more than one element |