skactiveml.utils._check_callable#
- skactiveml.utils._check_callable(func, name, n_positional_parameters=None)[source]#
Checks if function is a callable and if the number of free parameters is correct.
- Parameters
- func: callable
The functions to be validated.
- name: str
The name of the function
- n_positional_parameters: int, optional (default=None)
The number of free parameters. If n_free_parameters is None, n_free_parameters is set to 1.