Expand description
Validation utilities for SciRS2
This module provides utilities for validating data and parameters, including production-level security hardening and comprehensive input validation.
Modules§
- clustering
- Clustering-specific validation utilities
- cross_
platform - Cross-platform validation utilities for consistent behavior across operating systems and architectures Cross-platform validation utilities for consistent behavior across operating systems and architectures.
- custom
- Custom validator implementations for flexible validation logic
- parameters
- Parameter validation utilities
- production
- Production-Level Input Validation and Sanitization
Functions§
- check_
1d - Checks if an array is 1D
- check_
2d - Checks if an array is 2D
- check_
finite - Checks if a floating-point value is finite
- check_
in_ bounds - Checks if a value is within bounds (inclusive)
- check_
min_ samples - Checks if an array has at least the minimum number of samples
- check_
non_ negative - Checks if a value is non-negative
- check_
not_ empty - Checks if an array is not empty
- check_
positive - Checks if a value is positive
- check_
probabilities - Checks if an array contains only probabilities (between 0 and 1, inclusive)
- check_
probabilities_ sum_ to_ one - Checks if probability values sum to 1
- check_
probability - Checks if a probability value is valid (between 0 and 1, inclusive)
- check_
sameshape - Checks if two arrays have the same shape
- check_
square - Checks if a matrix is square
- checkarray_
finite - Checks if all values in an array are finite
- checkshape
- Checks if an array has the expected shape