hyperimpute.plugins.utils.decorators module
- benchmark(func: Callable) Callable
Decorator used for function duration benchmarking. It is active only with DEBUG loglevel.
- Parameters:
func – the function to be benchmarked.
- Returns:
the decorator
- Return type:
Callable
- expect_dataframe_for(idx: int) Callable
- expect_ndarray_for(idx: int) Callable
- expect_type_for(idx: int, dtype: Type) Callable
Decorator used for argument type checking.
- Parameters:
idx – which argument should be validated.
dtype – expected data type.
- Returns:
the decorator
- Return type:
Callable