blackboxΒΆ
- blackbox(func: Callable[[_Param], Any]) BlackBoxFuncBase[_Param]ΒΆ
Wraps a function into a black-box function class.
- Parameters:
func (Callable[_Param, Any]) β The function to wrap.
- Raises:
ValueError β If the same variable is already specified.
ValueError β If an empty variable list is specified.
- Returns:
The wrapped black-box function.
- Return type:
BlackBoxFuncBase[_Param]