featuristic.synthesis.CustomSymbolicFunction#
- class featuristic.synthesis.CustomSymbolicFunction(func: Callable, arg_count: int, name: str, format_str: str)[source]#
The base class for creating custom symbolic functions.
- __init__(func: Callable, arg_count: int, name: str, format_str: str)[source]#
Initialize the CustomSymbolicFunction class.
- Parameters:
func (function) – The function to use.
arg_count (int) – The number of arguments the function takes.
format_str (str) – The format string for the function. Must be a valid python format string, for example, “({} + {})” or “abs({})” and needs to have the same number of placeholders as the number of arguments the function takes.
Methods
__init__
(func, arg_count, name, format_str)Initialize the CustomSymbolicFunction class.