FllExporter
FllExporter
¶
Bases: Exporter
Export an engine and its components to the FuzzyLite Language.
Attributes¶
Functions¶
__init__
¶
activation
¶
activation(activation: Activation | None) -> str
Return the activation method in the FuzzyLite Language.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
activation |
Activation | None
|
activation method to export |
required |
Returns:
Type | Description |
---|---|
str
|
activation method in the FuzzyLite Language |
defuzzifier
¶
defuzzifier(defuzzifier: Defuzzifier | None) -> str
Return the defuzzifier in the FuzzyLite Language.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
defuzzifier |
Defuzzifier | None
|
defuzzifier to export |
required |
Returns:
Type | Description |
---|---|
str
|
defuzzifier in the FuzzyLite Language |
engine
¶
format
¶
Format the arguments according to the FuzzyLite Language.
formatting table
value | formatted |
---|---|
None |
none |
bool |
true , false |
float |
0.999 using fuzzylite.library.Settings.decimals |
list|set|tuple |
space-separated values, each formatted with this method |
object | anything else uses the object's __str__() method |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str | None
|
name of the property |
required |
value |
Any
|
value to format |
required |
Returns:
Type | Description |
---|---|
str
|
formatted (key and) value according to the FuzzyLite Language |
input_variable
¶
input_variable(variable: InputVariable) -> str
Return the input variable in the FuzzyLite Language.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
variable |
InputVariable
|
input variable to export |
required |
Returns: input variable in the FuzzyLite Language
norm
¶
output_variable
¶
output_variable(variable: OutputVariable) -> str
Return the output variable in the FuzzyLite Language.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
variable |
OutputVariable
|
output variable to export |
required |
Returns:
Type | Description |
---|---|
str
|
output variable in the FuzzyLite Language |