skactiveml.utils._check_callable#

skactiveml.utils._check_callable(func, name, n_positional_parameters=None)[source]#

Checks if func is a callable and if the number of free parameters is correct.

Parameters
funccallable

The functions to be validated.

namestr

The name of the function

n_positional_parametersint, default=None

The number of free parameters. If n_free_parameters is None, n_free_parameters is set to 1.