lfkit.utils.validators module#
Validation utilities.
- lfkit.utils.validators.validate_array(x, *, name, allow_negative=True)[source]#
Return a finite float array.
- Parameters:
x (float | Sequence[float] | ndarray[tuple[Any, ...], dtype[float64]])
name (str)
allow_negative (bool)
- Return type:
ndarray[tuple[Any, …], dtype[float64]]