modeci_mdf.execution_engine.EvaluableFunction
- class modeci_mdf.execution_engine.EvaluableFunction(function: Function = False, verbose: Optional[bool] = False)[source]
Bases:
object
Evaluates a
Function
value during MDF graph execution.- Parameters:
function –
Function()
to be evaluated e.g. mdf standard functionverbose – If set to True Provides in-depth information else verbose message is not displayed
Methods
evaluate
([parameters, array_format])Performs evaluation on the basis of given parameters and array_format
- evaluate(parameters: Optional[Dict[str, Any]] = None, array_format: str = 'numpy') Dict[str, Any] [source]
Performs evaluation on the basis of given parameters and array_format
- Parameters:
parameters – A dictionary of function parameters,e.g.logistic, parameters={‘gain’: 2,”bias”: 3,”offset”: 1}
array_format – It can be a n-dimensional array or a tensor
- Returns:
value of function after evaluation in Dictionary