Module validate

Module validate 

Source
Expand description

Validation utilities

Functionsยง

check_consistent_length
Check if X and y have compatible shapes
check_finite
Check if value is finite (generic over floating point types)
check_in_range
Check if value is in a specific range
check_matmul_compatible
Check if arrays have compatible shapes for matrix multiplication
check_n_features
Check if array has the expected number of features
check_non_negative
Check if value is non-negative (generic over numeric types)
check_positive
Check if value is positive (generic over numeric types)